Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart download on error #6404

Open
tpimh opened this issue Jul 29, 2015 · 2 comments
Open

Restart download on error #6404

tpimh opened this issue Jul 29, 2015 · 2 comments
Labels

Comments

@tpimh
Copy link

@tpimh tpimh commented Jul 29, 2015

I usually pipe youtube-dl output to mplayer like this: ./youtube-dl -q -o- https://www.youtube.com/watch?v=... | mplayer - and sometimes I get this error:

ERROR: unable to download video data: [Errno 104] Connection reset by peer

After this the download it aborted and I only can continue from the beginning.
It would be great if youtube-dl on fail would try to restart download from the position where it failed before exiting with error message.

@jaimeMF jaimeMF added the request label Jul 29, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 29, 2015

I don't know how easy would be to implement what you are asking for. But you can workaround it by using something like mplayer $(youtube-dl --get-url VIDEO_URL) (you may need to build mplayer with https support, could be hard) or switching to mpv, which is a fork of mplayer that (among other changes) can use youtube-dl to directly play YouTube videos.

@tpimh
Copy link
Author

@tpimh tpimh commented Jan 6, 2016

Switched to mpv, it is awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.