youtube-dl-server
youtube-dl-server copied to clipboard
Include other options in string?
I noticed that YouTube-dl-server will stop if there is a private video listed YT playlist. Is there a way I can include —ignore-errors
In order to include that options, you have to modify 'youtube-dl-server.py' as in the following.
- add the statement, 'YDL_IGNORE_ERR': None, below the line 16 app_default = {
- add the statement, 'ignoreerrors': ydl_vars['YDL_IGNORE_ERR'], below the line 101(?) return {
after that, re-start the docker-container.


Has anyone tried running with the ignore error flag enabled? Wondering if there is any harm in just enabling it by default. We don't really report any errors back to the user anyway.
Has anyone tried running with the ignore error flag enabled? Wondering if there is any harm in just enabling it by default. We don't really report any errors back to the user anyway.
I learned this flag does not work in python based on this docker. If any event (eg. any exception due to request of deleted clips) happened, youtube-dl-server.py was suspended and after that, I couldn't download any clip anymore. In order to escape this situation, it was the only way to restart the docker container.
I think we need some modification that the python script restarts automatically in case of happening any exception or error.
Probably just need to catch and handle errors on that thread. Do you have a playlist you were testing with?
Probably just need to catch and handle errors on that thread. Do you have a playlist you were testing with?
https://www.youtube.com/watch?v=wNtbfEaAw18&list=PLofOAS0adMaxoTfZf7HLJ5Vk3As5JuDtE&index=2
The link above is what I was testing. The fourth clip was deleted. So, when I tried to download it, the error happened and the process was suspended at that point. Then I tried downloading another clip(even very normal) but I couldn't do until I restarted the docker container.
I've just found the solution. The part of the code above are slightly wrong. 'YDL_IGNORE_ERR': None => True
After that, --ignore-errors works so well and youtube-dl-server.py weren't suspended anymore.
Do you think I should make this the default setting?
Yes, when we try to download playlists, oftentimes we experience that kind of error. Otherwise, we will always have to restart the docker-container whenever we meet any exception or error of python.