don't retry big videos
This commit is contained in:
parent
1331e5769f
commit
1b55033bb8
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ func (v *YoutubeVideo) download(useIPv6 bool) error {
|
||||||
_ = v.delete()
|
_ = v.delete()
|
||||||
return errors.Err("video is too long to process")
|
return errors.Err("video is too long to process")
|
||||||
}
|
}
|
||||||
|
if strings.Contains(string(outLog), "File is larger than max-filesize") {
|
||||||
|
_ = v.delete()
|
||||||
|
return errors.Err("the video is too big to sync, skipping for now")
|
||||||
|
}
|
||||||
if string(errorLog) != "" {
|
if string(errorLog) != "" {
|
||||||
log.Printf("Command finished with error: %v", errors.Err(string(errorLog)))
|
log.Printf("Command finished with error: %v", errors.Err(string(errorLog)))
|
||||||
_ = v.delete()
|
_ = v.delete()
|
||||||
|
|
Loading…
Reference in a new issue