Update remove-duplicates.js

This commit is contained in:
Aleksandr Statciuk 2021-08-16 20:04:13 +03:00
parent da50969d3c
commit d45b8884c2
1 changed files with 0 additions and 2 deletions

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