Update remove-duplicates.js

This commit is contained in:
Aleksandr Statciuk
2021-08-16 20:04:13 +03:00
parent 1002f9b074
commit 598bbe0fec

View File

@@ -47,8 +47,6 @@ async function removeDuplicates(playlist) {
return utils.removeProtocol(item.url) === utils.removeProtocol(channel.url)
})
if (sameUrl) return false
const sameHash = buffer.find(item => item.hash === channel.hash)
if (sameHash && channel.status === 'Offline') return false
buffer.push(channel)
return true