mirror of
https://github.com/iptv-org/iptv
synced 2026-10-25 04:18:39 -04:00
Renamed getGroup to filterGroup
This commit is contained in:
1 parent
a44cf6c217
commit
9700d34426
1 file changed
+2
-2
+2
-2
@@ -41,12 +41,12 @@ class Channel {
|
|||||||
this.name = data.tvg.name
|
this.name = data.tvg.name
|
||||||
this.language = data.tvg.language
|
this.language = data.tvg.language
|
||||||
this.logo = data.tvg.logo
|
this.logo = data.tvg.logo
|
||||||
this.group = this._getGroup(data.group.title)
|
this.group = this._filterGroup(data.group.title)
|
||||||
this.url = data.url
|
this.url = data.url
|
||||||
this.title = data.name
|
this.title = data.name
|
||||||
}
|
}
|
||||||
|
|
||||||
_getGroup(groupTitle) {
|
_filterGroup(groupTitle) {
|
||||||
if(!groupTitle) return ''
|
if(!groupTitle) return ''
|
||||||
|
|
||||||
const groupIndex = supportedCategories.map(g => g.toLowerCase()).indexOf(groupTitle.toLowerCase())
|
const groupIndex = supportedCategories.map(g => g.toLowerCase()).indexOf(groupTitle.toLowerCase())
|
||||||
|
|||||||
Reference in new issue
Block a user