mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update update.js
This commit is contained in:
parent
8e402a8b12
commit
bf04b5f2fb
1 changed files with 8 additions and 1 deletions
|
@ -9,7 +9,14 @@ async function main() {
|
||||||
const levels = { online: 1, blocked: 2, timeout: 3, error: 4, default: 5 }
|
const levels = { online: 1, blocked: 2, timeout: 3, error: 4, default: 5 }
|
||||||
streams = orderBy(
|
streams = orderBy(
|
||||||
streams,
|
streams,
|
||||||
['channel', s => levels[s.status] || levels['default'], 'title', 'height', 'frame_rate', 'url'],
|
[
|
||||||
|
'channel',
|
||||||
|
s => (s.channel ? '' : s.title),
|
||||||
|
s => levels[s.status] || levels['default'],
|
||||||
|
'height',
|
||||||
|
'frame_rate',
|
||||||
|
'url'
|
||||||
|
],
|
||||||
['asc', 'asc', 'asc', 'desc', 'desc', 'asc']
|
['asc', 'asc', 'asc', 'desc', 'desc', 'asc']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue