From adc434689c66c6f1e2678a177cff900c32eb32c8 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 9 Jun 2022 03:14:53 +0300 Subject: [PATCH] Update generate.js --- scripts/commands/playlist/generate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/commands/playlist/generate.js b/scripts/commands/playlist/generate.js index f34f161142..4e26c1bb3f 100644 --- a/scripts/commands/playlist/generate.js +++ b/scripts/commands/playlist/generate.js @@ -36,8 +36,8 @@ async function loadStreams() { const levels = { online: 1, blocked: 2, timeout: 3, error: 4, default: 5 } streams = orderBy( streams, - ['channel', s => levels[s.status] || levels['default'], 'height', 'url'], - ['asc', 'asc', 'desc', 'asc'] + ['channel', s => levels[s.status] || levels['default'], 'height', 'frame_rate', 'url'], + ['asc', 'asc', 'desc', 'desc', 'asc'] ) streams = _.uniqBy(streams, stream => stream.channel || _.uniqueId())