Update generate.js
This commit is contained in:
parent
1ec270c5f4
commit
adc434689c
@ -36,8 +36,8 @@ async function loadStreams() {
|
|||||||
const levels = { online: 1, blocked: 2, timeout: 3, error: 4, default: 5 }
|
const levels = { online: 1, blocked: 2, timeout: 3, error: 4, default: 5 }
|
||||||
streams = orderBy(
|
streams = orderBy(
|
||||||
streams,
|
streams,
|
||||||
['channel', s => levels[s.status] || levels['default'], 'height', 'url'],
|
['channel', s => levels[s.status] || levels['default'], 'height', 'frame_rate', 'url'],
|
||||||
['asc', 'asc', 'desc', 'asc']
|
['asc', 'asc', 'desc', 'desc', 'asc']
|
||||||
)
|
)
|
||||||
streams = _.uniqBy(streams, stream => stream.channel || _.uniqueId())
|
streams = _.uniqBy(streams, stream => stream.channel || _.uniqueId())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user