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

Update db.js
pull/4650/head
Dum4G 4 years ago committed by GitHub
commit 53770c30a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save