mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-26 15:12:47 -05:00
Only filter offline videos from stream data
This commit is contained in:
@@ -9,7 +9,10 @@ import chokidar from 'chokidar'
|
||||
const sleep = promisify(setTimeout)
|
||||
|
||||
function filterLive(data) {
|
||||
return data.filter(({ status }) => status === 'Live' || status === 'Unknown')
|
||||
return data.filter(
|
||||
({ kind, status }) =>
|
||||
kind !== 'video' || status === 'Live' || status === 'Unknown',
|
||||
)
|
||||
}
|
||||
|
||||
export async function* pollDataURL(url, intervalSecs) {
|
||||
|
||||
Reference in New Issue
Block a user