From 61a86de1be2d7f29188246024990db0946c53fe1 Mon Sep 17 00:00:00 2001 From: freearhey Date: Fri, 16 Apr 2021 05:18:18 +0300 Subject: [PATCH] Update format.js Remove duplicates before sorting --- scripts/format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/format.js b/scripts/format.js index 4d7b615c7e..d66c868b44 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -34,9 +34,9 @@ async function main() { for (const playlist of playlists) { await loadPlaylist(playlist.url) .then(addToBuffer) + .then(removeDuplicates) .then(sortChannels) .then(filterChannels) - .then(removeDuplicates) .then(detectResolution) .then(savePlaylist) .then(done)