Removed extra checks

This commit is contained in:
freearhey 2019-09-22 16:47:49 +03:00
parent 8c97e8320f
commit 7e94275183
1 changed files with 1 additions and 5 deletions

View File

@ -18,11 +18,7 @@ async function main() {
console.log(`Parsing 'index.m3u'...`)
const playlist = util.parsePlaylist('index.m3u')
let countries = playlist.items
const unsortedIndex = countries.map(c => c.url).indexOf('channels/unsorted.m3u')
if(unsortedIndex > -1) {
countries.splice(unsortedIndex, 1)
}
const countries = playlist.items
if(debug) {
console.log('Debug mode is turn on')