mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 03:46:41 -05:00
Update grab.js
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user