mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 10:57:18 -05:00
Updated Playlist.save() method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user