From c79e07c9fa496ede57e0b18cdd653b9b7fb0e881 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 10 Aug 2022 21:55:29 +0200 Subject: [PATCH] change recent livestreams logic slightly --- sources/youtubeVideo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/youtubeVideo.go b/sources/youtubeVideo.go index 90d9ee5..9b691bc 100644 --- a/sources/youtubeVideo.go +++ b/sources/youtubeVideo.go @@ -800,8 +800,8 @@ func (v *YoutubeVideo) downloadAndPublish(daemon *jsonrpc.Client, params SyncPar } buggedLivestream := v.youtubeInfo.LiveStatus == "post_live" - if buggedLivestream { - return nil, errors.Err("livestream is likely bugged as it was published less than 24 hours ago and has a length of %s", dur.String()) + if buggedLivestream && dur < 2*time.Hour { + return nil, errors.Err("livestream is likely bugged as it was recently published and has a length of %s which is more than 2 hours", dur.String()) } for { err = v.download()