mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update playlist/generate.js
This commit is contained in:
parent
512885b251
commit
a0eca2bebe
2 changed files with 12 additions and 12 deletions
|
@ -31,7 +31,7 @@ main()
|
|||
|
||||
async function loadStreams() {
|
||||
await db.streams.load()
|
||||
let streams = await db.streams.find({ is_online: true })
|
||||
let streams = await db.streams.find({ status: { $in: ['online', 'timeout', 'blocked'] } })
|
||||
streams = orderBy(streams, ['channel', 'height', 'url'], ['asc', 'desc', 'asc'])
|
||||
streams = _.uniqBy(streams, stream => stream.channel || _.uniqueId())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue