From 6d22f2373a7af0472d20dcf62e0ada250c83789a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Fri, 9 Sep 2022 20:19:49 +0300 Subject: [PATCH] Update update.js --- scripts/commands/playlist/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/commands/playlist/update.js b/scripts/commands/playlist/update.js index 40418500de..6799e34e95 100644 --- a/scripts/commands/playlist/update.js +++ b/scripts/commands/playlist/update.js @@ -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')