From fe80b52f0ff2f80212721e1d458d92d154743d94 Mon Sep 17 00:00:00 2001 From: freearhey Date: Thu, 17 Sep 2020 23:30:28 +0300 Subject: [PATCH] Added unsorted playlist --- index.m3u | 2 ++ scripts/format.js | 2 ++ scripts/helper.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/index.m3u b/index.m3u index e0287e751..d727ae726 100644 --- a/index.m3u +++ b/index.m3u @@ -337,3 +337,5 @@ channels/eh.m3u channels/ye.m3u #EXTINF:-1,Zimbabwe channels/zw.m3u +#EXTINF:-1,Unsorted +channels/unsorted.m3u diff --git a/scripts/format.js b/scripts/format.js index 515c4c822..a123c68bb 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -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) diff --git a/scripts/helper.js b/scripts/helper.js index e43e95aed..4489c5abf 100644 --- a/scripts/helper.js +++ b/scripts/helper.js @@ -18,6 +18,8 @@ helper.code2flag = function (code) { return '🇬🇧' case 'int': return '🌎' + case 'unsorted': + return '' default: return code .toUpperCase()