diff --git a/scripts/generators/index_region_m3u.js b/scripts/generators/index_region_m3u.js index e1d32a8b65..9159dd90f5 100644 --- a/scripts/generators/index_region_m3u.js +++ b/scripts/generators/index_region_m3u.js @@ -42,7 +42,7 @@ function getChannelRegions(stream, { regions }) { acc.push(regions[code]) break case 's': - const [c] = item.split('-') + const [c] = code.split('-') const r1 = _.filter(regions, { countries: [c] }) acc = acc.concat(r1) break