From e572753284483e68860c496495e058ac82beafe5 Mon Sep 17 00:00:00 2001 From: Logan G Date: Tue, 31 Dec 2024 21:57:29 -0700 Subject: [PATCH] This should have never been in that file --- download.go | 5 ----- ytva.go | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/download.go b/download.go index e86b9ef..467d8a7 100644 --- a/download.go +++ b/download.go @@ -49,11 +49,6 @@ func downloadVideo(url string, path string, group GroupConfig) (err error) { tempPath := MainConfig.TempDir+"/"+video.Info.ID - if video.Info.IsLive { - log.Info("Video is a live stream. Skipping.") - return nil - } - /* VIDEO */ if group.VideoFormat != "" { log.Debugf("Downloading video \"%s\" with format \"%s\"", video.Info.ID, group.VideoFormat) diff --git a/ytva.go b/ytva.go index 9a56df3..1801cc8 100644 --- a/ytva.go +++ b/ytva.go @@ -152,6 +152,11 @@ func main() { } } + if v.IsLive { + log.Infof("Skipping live stream \"%s\".", v.Title) + continue + } + dirPath := fillPlaceholders(group.OutputDir, v) fileName := fillPlaceholders(group.FileName, v) path := dirPath+"/"+fileName