mirror of
https://github.com/iptv-org/iptv.git
synced 2024-08-25 00:01:09 +02:00
Merge branch 'master' into add-more-channels
This commit is contained in:
commit
ca172759ca
@ -184,8 +184,8 @@ async function updateFromEPG(playlist) {
|
||||
|
||||
async function removeUnsortedDuplicates(playlist) {
|
||||
console.info(` Looking for duplicates...`)
|
||||
const urls = globalBuffer.map(i => i.url)
|
||||
const channels = playlist.channels.filter(i => !urls.includes(i.url))
|
||||
const urls = globalBuffer.map(i => i.url.replace(/(^\w+:|^)\/\//, ''))
|
||||
const channels = playlist.channels.filter(i => !urls.includes(i.url.replace(/(^\w+:|^)\/\//, '')))
|
||||
if (channels.length === playlist.channels.length) return playlist
|
||||
playlist.channels = channels
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user