RandomNinjaAtk / docker-sonarr-extended

Sonarr (develop) with bash scripts to automate and extend functionality.
GNU General Public License v3.0
66 stars 15 forks source link

Add yt-dlp flag to prevent timed out error #35

Closed blumberg closed 1 year ago

blumberg commented 1 year ago

I'm having issues to download from yt-dlp.

Looking around I found this issue https://github.com/yt-dlp/yt-dlp/issues/2396#issuecomment-1018262631 that introduces a workaround by adding a --user-agent facebookexternalhit/1.1 flag to yt-dlp.

As it worked on my side and I don't see an issue using it by default, I'm sending this PR.

I've introduced this flag using a new variable at the beginning, making it easier to alter or remove it in future if required.