change recent livestreams logic slightly
This commit is contained in:
parent
e454cdb4c9
commit
c79e07c9fa
1 changed files with 2 additions and 2 deletions
|
@ -800,8 +800,8 @@ func (v *YoutubeVideo) downloadAndPublish(daemon *jsonrpc.Client, params SyncPar
|
||||||
}
|
}
|
||||||
|
|
||||||
buggedLivestream := v.youtubeInfo.LiveStatus == "post_live"
|
buggedLivestream := v.youtubeInfo.LiveStatus == "post_live"
|
||||||
if buggedLivestream {
|
if buggedLivestream && dur < 2*time.Hour {
|
||||||
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())
|
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 {
|
for {
|
||||||
err = v.download()
|
err = v.download()
|
||||||
|
|
Loading…
Reference in a new issue