Update update.js

pull/24814/head
Aleksandr Statciuk 3 years ago
parent 867fa4bbdd
commit b99abc8ca8

@ -9,7 +9,14 @@ async function main() {
const levels = { online: 1, blocked: 2, timeout: 3, error: 4, default: 5 }
streams = orderBy(
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']
)

Loading…
Cancel
Save