Updated Playlist.save() method

This commit is contained in:
Aleksandr Statciuk
2021-08-02 19:07:10 +03:00
parent fc71d0e6ff
commit 5a43ff660d
5 changed files with 8 additions and 4 deletions

View File

@@ -51,6 +51,7 @@ async function removeDuplicates(playlist) {
if (playlist.channels.length !== channels.length) {
log.print('updated')
playlist.channels = channels
playlist.updated = true
}
return playlist
@@ -74,6 +75,7 @@ async function removeUnsortedDuplicates(playlist) {
if (channels.length !== playlist.channels.length) {
log.print('updated')
playlist.channels = channels
playlist.updated = true
}
return playlist