mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 18:10:04 -04:00
Update playlist/update.js
This commit is contained in:
parent
a7b02697ab
commit
395f40013a
2 changed files with 7 additions and 11 deletions
|
@ -6,11 +6,7 @@ const _ = require('lodash')
|
|||
async function main() {
|
||||
await db.streams.load()
|
||||
let streams = await db.streams.find({})
|
||||
streams = orderBy(
|
||||
streams,
|
||||
['channel_name', i => i.status.level, i => i.resolution.height, 'url'],
|
||||
['asc', 'asc', 'desc', 'asc']
|
||||
)
|
||||
streams = orderBy(streams, ['title', 'height', 'url'], ['asc', 'desc', 'asc'])
|
||||
|
||||
const files = _.groupBy(streams, 'filepath')
|
||||
for (const filepath in files) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue