This should have never been in that file

This commit is contained in:
Logan G 2024-12-31 21:57:29 -07:00
parent 07b9fb4053
commit e572753284
Signed by: logan
GPG key ID: E328528C921E7A7A
2 changed files with 5 additions and 5 deletions

View file

@ -49,11 +49,6 @@ func downloadVideo(url string, path string, group GroupConfig) (err error) {
tempPath := MainConfig.TempDir+"/"+video.Info.ID tempPath := MainConfig.TempDir+"/"+video.Info.ID
if video.Info.IsLive {
log.Info("Video is a live stream. Skipping.")
return nil
}
/* VIDEO */ /* VIDEO */
if group.VideoFormat != "" { if group.VideoFormat != "" {
log.Debugf("Downloading video \"%s\" with format \"%s\"", video.Info.ID, group.VideoFormat) log.Debugf("Downloading video \"%s\" with format \"%s\"", video.Info.ID, group.VideoFormat)

View file

@ -152,6 +152,11 @@ func main() {
} }
} }
if v.IsLive {
log.Infof("Skipping live stream \"%s\".", v.Title)
continue
}
dirPath := fillPlaceholders(group.OutputDir, v) dirPath := fillPlaceholders(group.OutputDir, v)
fileName := fillPlaceholders(group.FileName, v) fileName := fillPlaceholders(group.FileName, v)
path := dirPath+"/"+fileName path := dirPath+"/"+fileName