Update grab.js

This commit is contained in:
Aleksandr Statciuk 2021-10-12 21:44:23 +03:00
parent 8400b5069f
commit a5c5ef86f4

View file

@ -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
}) })