Added unsorted playlist

This commit is contained in:
freearhey 2020-09-17 23:30:28 +03:00
parent 48cc5e021c
commit fe80b52f0f
3 changed files with 6 additions and 0 deletions

View File

@ -337,3 +337,5 @@ channels/eh.m3u
channels/ye.m3u
#EXTINF:-1,Zimbabwe
channels/zw.m3u
#EXTINF:-1,Unsorted
channels/unsorted.m3u

View File

@ -15,6 +15,8 @@ async function main() {
const index = parseIndex()
for (let item of index.items) {
if (item.name === 'Unsorted') continue
console.log(`Processing '${item.url}'...`)
let playlist = parsePlaylist(item.url)
items = items.concat(playlist.items)

View File

@ -18,6 +18,8 @@ helper.code2flag = function (code) {
return '🇬🇧'
case 'int':
return '🌎'
case 'unsorted':
return ''
default:
return code
.toUpperCase()