retry until 直至成功

命令异常退出返回非0.

重复执行命令,直到返回0.

注意,如果一直失败,会一直重试,导致CPU使用率飙升。

TODO: 重试前sleep

do { yourcmd -o '%(playlist)s/%(playlist_index)s_%(title)s.%(ext)s' -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' 'yourlistirl'  -c } until ($?)

--max-downloads

--playlist-items 111:222
posted @ 2022-04-26 18:50  fndefbwefsowpvqfx  阅读(53)  评论(0编辑  收藏  举报