Update generate.js

what-a-patch-1
Aleksandr Statciuk 3 years ago
parent 369c7df59a
commit 7c42094d45

@ -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())

Loading…
Cancel
Save