fix patched bug

This commit is contained in:
Niko Storni 2021-07-26 18:03:37 +02:00
parent 3a0882230a
commit fa9dc35123

View file

@ -216,7 +216,7 @@ func (v *YoutubeVideo) download() error {
defer func(start time.Time) { defer func(start time.Time) {
timing.TimedComponent("download").Add(time.Since(start)) timing.TimedComponent("download").Add(time.Since(start))
}(start) }(start)
if v.youtubeInfo.IsLive != nil { if v.youtubeInfo.IsLive == true {
return errors.Err("video is a live stream and hasn't completed yet") return errors.Err("video is a live stream and hasn't completed yet")
} }
videoPath := v.getFullPath() videoPath := v.getFullPath()