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

YouTube: "ERROR: content too short" #13988

Closed
korteland opened this issue Aug 22, 2017 · 0 comments
Closed

YouTube: "ERROR: content too short" #13988

korteland opened this issue Aug 22, 2017 · 0 comments
Labels

Comments

@korteland
Copy link

@korteland korteland commented Aug 22, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.08.18
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description

I could only duplicate this with one video. Other videos on this channel, using the same format, work fine, e.g. https://www.youtube.com/watch?v=_JZVsZBfP-k

If I restart the download, it picks up from where it left off and then fails with the same error as below, so I ended up downloading it with while [ $? -ne 0 ]; do youtube-dl -v https://www.youtube.com/watch?v=r7ObZysYxEk; done.

Log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=r7ObZysYxEk']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.18
[debug] Python version 3.6.2 - Linux-4.12.8-2-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.3.3, ffprobe 3.3.3
[debug] Proxy map: {}
[youtube] r7ObZysYxEk: Downloading webpage
[youtube] r7ObZysYxEk: Downloading video info webpage
[youtube] r7ObZysYxEk: Extracting video information
[youtube] r7ObZysYxEk: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://r1---sn-ppoxu-ntql.googlevideo.com/videoplayback/id/afb39b672b18c449/itag/266/source/youtube/requiressl/yes/pcm2cms/yes/initcwndbps/1233750/mm/31/mn/sn-ppoxu-ntql/mv/m/pl/18/ei/4--bWbHfOYG84gLWzaGQDQ/ms/au/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/9210474251/lmt/1503310858228417/dur/3691.854/signature/97877AE63B85E757654D4ABF5A63ACE140933650.2E3ACF564E0D89FAAF8259E5BF7BF3EAC0CFB4/mt/1503391574/key/dg_yt0/ip/121.44.106.195/ipbits/0/expire/1503413316/sparams/ip,ipbits,expire,id,itag,source,requiressl,pcm2cms,initcwndbps,mm,mn,mv,pl,ei,ms,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 693
[download] Destination: ⁴ᴷ Motorman's Point of View - Museum Train from 34 St to Mets-Willets Point and Back-r7ObZysYxEk.f266.mp4
[download]   0.5% of ~6.90GiB at  1.53MiB/s ETA 01:08:54ERROR: content too short (expected 11816025 bytes and served 2583388)
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1859, in process_info
    partial_success = dl(fname, new_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1807, in dl
    return fd.download(name, info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 361, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/dash.py", line 45, in real_download
    success, frag_content = self._download_fragment(ctx, fragment_url, info_dict)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/fragment.py", line 97, in _download_fragment
    'http_headers': headers or info_dict.get('http_headers'),
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 361, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/http.py", line 238, in real_download
    raise ContentTooShortError(byte_counter, int(data_len))
youtube_dl.utils.ContentTooShortError: Downloaded 2583388 bytes, expected 11816025 bytes

@dstftw dstftw closed this Aug 22, 2017
@dstftw dstftw added the duplicate label Aug 22, 2017
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.