mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update grab.js
This commit is contained in:
parent
8400b5069f
commit
a5c5ef86f4
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ async function main() {
|
||||||
function filterChannels(channels, options) {
|
function filterChannels(channels, options) {
|
||||||
return channels.filter(channel => {
|
return channels.filter(channel => {
|
||||||
let result = true
|
let result = true
|
||||||
if (options.country) result = channel.country === options.country
|
if (options.country) result = channel.country === options.country.toUpperCase()
|
||||||
if (options.language) result = channel.lang === options.language
|
if (options.language) result = channel.lang === options.language
|
||||||
return result
|
return result
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue