do not retry unavailable videos

This commit is contained in:
Niko Storni 2019-09-27 16:12:21 +02:00
parent c41c368f34
commit 8d849b8f06

View file

@ -785,6 +785,7 @@ func (s *Sync) startWorker(workerNum int) {
"HTTP Error 403", "HTTP Error 403",
"giving up after 0 fragment retries", "giving up after 0 fragment retries",
"download error: ERROR: Sorry about that", "download error: ERROR: Sorry about that",
"download error: ERROR: This video is not available",
} }
if util.SubstringInSlice(err.Error(), errorsNoRetry) { if util.SubstringInSlice(err.Error(), errorsNoRetry) {
log.Println("This error should not be retried at all") log.Println("This error should not be retried at all")