handle weird state
This commit is contained in:
parent
acca80dc70
commit
4b4cee9fcc
1 changed files with 3 additions and 0 deletions
|
@ -328,6 +328,9 @@ func (v *YoutubeVideo) download() error {
|
||||||
return errors.Err("the video is too big to sync, skipping for now")
|
return errors.Err("the video is too big to sync, skipping for now")
|
||||||
}
|
}
|
||||||
if string(errorLog) != "" {
|
if string(errorLog) != "" {
|
||||||
|
if strings.Contains(string(errorLog), "HTTP Error 429") {
|
||||||
|
v.pool.SetThrottled(sourceAddress)
|
||||||
|
}
|
||||||
log.Printf("Command finished with error: %v", errors.Err(string(errorLog)))
|
log.Printf("Command finished with error: %v", errors.Err(string(errorLog)))
|
||||||
_ = v.delete("due to error")
|
_ = v.delete("due to error")
|
||||||
return errors.Err(string(errorLog))
|
return errors.Err(string(errorLog))
|
||||||
|
|
Loading…
Reference in a new issue