Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube-dl stops downloading halfway #8625
Comments
|
Post the full output of youtube-dl when run with
Do not post screenshots of verbose log only plain text is acceptable. The output (including the first lines) contains important debugging information. Issues without the full output are often not reproducible and therefore do not get solved in short order, if ever. |
|
This also happens if you have a really bad ISP. You should be able to use the same command in the same directory and it will pick up where it left off, too. That means you won't lose 50% of the download if it's already been downloaded. |
|
To mitigate this, try |
|
I've been having it fail regularly over the past 3 days.. Here is my output.. Comcast, Bay Area, 86Mb/s/5Mb/s mark:~/ $ youtube-dl -v https://www.youtube.com/watch\?v\=wq9Gu5N42HQ --continue [20:09:03] |
|
youtube-dl obviously has a retry mechanism.
It just doesn't catch everything
|
|
@weedy Could you try this patch: $ git diff youtube_dl/downloader/hls.py
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index 7373ec0..56416c3 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -123,7 +123,7 @@ class HlsFD(FragmentFD):
frag_content = down.read()
down.close()
break
- except compat_urllib_error.HTTPError as err:
+ except (compat_urllib_error.HTTPError, compat_urllib_error.URLError) as err:
# Unavailable (possibly temporary) fragments may be served.
# First we try to retry then either skip or abort.
# See https://github.com/rg3/youtube-dl/issues/10165,And by the way, don't post the same message on so many issues |
|
I have a very old DSL modem that I'm gearing up to replace and I'm getting this problem whenever the connection drops and reconnects, even when I specify a custom Here's an example of what a typical failure looks like (
According to I've asked youtube-dl to update to My workaround (when I remember to use it) is the same kind of shell script wrapper "retry until youtube-dl exits cleanly" solution given in issue #4240. |
I'm currently trying to download all my soundcloud liked songs via youtube-dl, but whenever I try to do this the download stops halfway:
download] Downloading video 43 of 115
[soundcloud] withcomplimentsradio/with035: Resolving id
[soundcloud] withcomplimentsradio/with035: Downloading info JSON
[soundcloud] 227304872: Downloading track url
[soundcloud] 227304872: Checking fallback video format URL
[soundcloud] 227304872: Checking http_mp3_128_url video format URL
[download] Destination: With Compliments 035 by Franz Alice Stern-227304872.mp3
[download] 1.8% of 55.26MiB at 2.15MiB/s ETA 00:25ERROR: unable to download video data: ('The read operation timed out',)
How can I solve this issue? Thanks in advance