I want to download a playlist of videos from youtube using youtube-dl for further offline viewing. Some videos have unavailable fragments (but for some reason there is no problem when viewing through browser). I want to download the playlist, but skip the videos with missing fragments.
My original run was:
youtube-dl -if bestvideo+bestaudio PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW
But it "freezes" at videos with missed fragments.
Later, in documentation I found this option option --abort-on-unavailable-fragment
But following command just aborts, when it takes 10 retries for attempt to download fragment.
youtube-dl --abort-on-unavailable-fragment -if bestvideo+bestaudio PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW
I also found parameter --skip-unavailable-fragments
, but it just skips fragments, which are unavailable and continue to download next fragment. It results in glitches in video after merging.
youtube-dl --skip-unavailable-fragments -if bestvideo+bestaudio PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW
Are there any options / parameters to download the whole playlist, but as soon as there is video with missed fragment: skip that video and switch to the next video in playlist?