mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Filter offline streams when stream kind prop unset
This commit is contained in:
@@ -11,7 +11,7 @@ const sleep = promisify(setTimeout)
|
|||||||
function filterLive(data) {
|
function filterLive(data) {
|
||||||
return data.filter(
|
return data.filter(
|
||||||
({ kind, status }) =>
|
({ kind, status }) =>
|
||||||
kind !== 'video' || status === 'Live' || status === 'Unknown',
|
(kind && kind !== 'video') || status === 'Live' || status === 'Unknown',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user