mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
YT: live videos with duration are not live anymore
This commit is contained in:
@@ -364,7 +364,11 @@ var YouTubeClient = GObject.registerClass({
|
|||||||
|
|
||||||
async getHLSUriAsync(info, itagOpts)
|
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}`);
|
debug(`video is live: ${isLive}`);
|
||||||
|
|
||||||
/* YouTube only uses HLS for live content */
|
/* YouTube only uses HLS for live content */
|
||||||
|
Reference in New Issue
Block a user