Update format.js

Remove duplicates before sorting
This commit is contained in:
freearhey 2021-04-16 05:18:18 +03:00
parent dfc62c86fd
commit 61a86de1be

View File

@ -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)