From afb9d025c422098dacde5b1ec2bede1522d3fb38 Mon Sep 17 00:00:00 2001 From: Max Goodhart Date: Mon, 27 Jul 2020 15:51:24 -0700 Subject: [PATCH] Filter offline streams when stream kind prop unset --- src/node/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/data.js b/src/node/data.js index bbf53ed..26bcc7f 100644 --- a/src/node/data.js +++ b/src/node/data.js @@ -11,7 +11,7 @@ const sleep = promisify(setTimeout) function filterLive(data) { return data.filter( ({ kind, status }) => - kind !== 'video' || status === 'Live' || status === 'Unknown', + (kind && kind !== 'video') || status === 'Live' || status === 'Unknown', ) }