mirror of
https://github.com/iptv-org/iptv
synced 2026-10-24 20:09:01 -04:00
Update playlist/generate.js
This commit is contained in:
1 parent
8b9dc3f0a2
commit
2a6b245d6a
2 files changed
+12
-12
No files matched your search
@@ -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())
|
||||
|
||||
|
||||
Reference in new issue
Block a user