Merge pull request #4647 from iptv-org/update-db-js

Update db.js
This commit is contained in:
Dum4G 2021-09-21 14:21:31 +03:00 committed by GitHub
commit 53770c30a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -84,9 +84,8 @@ db.channels = {
if (!this.duplicates) {
const buffer = []
output = output.filter(channel => {
const info = channel.getInfo()
if (buffer.includes(info)) return false
buffer.push(info)
if (buffer.includes(channel.hash)) return false
buffer.push(channel.hash)
return true
})