diff --git a/src/youtube.js b/src/youtube.js index 5d7cdfed..106df4ec 100644 --- a/src/youtube.js +++ b/src/youtube.js @@ -364,7 +364,11 @@ var YouTubeClient = GObject.registerClass({ async getHLSUriAsync(info, itagOpts) { - const isLive = info.videoDetails.isLiveContent; + const isLive = ( + info.videoDetails.isLiveContent + && (!info.videoDetails.lengthSeconds + || Number(info.videoDetails.lengthSeconds) <= 0) + ); debug(`video is live: ${isLive}`); /* YouTube only uses HLS for live content */