Update update.js

This commit is contained in:
Aleksandr Statciuk 2022-09-09 20:19:49 +03:00
parent 4b35cb784d
commit 6d22f2373a
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ 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'], 'height', 'frame_rate', 'url'],
['asc', 'asc', 'desc', 'desc', 'asc']
['channel', s => levels[s.status] || levels['default'], 'title', 'height', 'frame_rate', 'url'],
['asc', 'asc', 'asc', 'desc', 'desc', 'asc']
)
const files = _.groupBy(streams, 'filepath')