mirror of
https://github.com/iptv-org/iptv
synced 2026-10-25 12:28:53 -04:00
Removed extra checks
This commit is contained in:
1 parent
20ab05e5a3
commit
e2a80fb07f
1 file changed
+1
-5
+1
-5
@@ -18,11 +18,7 @@ async function main() {
|
|||||||
|
|
||||||
console.log(`Parsing 'index.m3u'...`)
|
console.log(`Parsing 'index.m3u'...`)
|
||||||
const playlist = util.parsePlaylist('index.m3u')
|
const playlist = util.parsePlaylist('index.m3u')
|
||||||
let countries = playlist.items
|
const countries = playlist.items
|
||||||
const unsortedIndex = countries.map(c => c.url).indexOf('channels/unsorted.m3u')
|
|
||||||
if(unsortedIndex > -1) {
|
|
||||||
countries.splice(unsortedIndex, 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
if(debug) {
|
if(debug) {
|
||||||
console.log('Debug mode is turn on')
|
console.log('Debug mode is turn on')
|
||||||
|
|||||||
Reference in new issue
Block a user