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

[Bug] youtube-dl passes incorrect arguments to curl when --retries infinite is passed. #19303

Closed
jcjordyn130 opened this issue Feb 22, 2019 · 0 comments

Comments

@jcjordyn130
Copy link

@jcjordyn130 jcjordyn130 commented Feb 22, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.02.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.02.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

youtube-dl --external-downloader "curl" https://www.youtube.com/watch?v=-Omnk3C-1YA -v --retries infinite
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--external-downloader', 'curl', 'https://www.youtube.com/watch?v=-Omnk3C-1YA', '-v', '--retries', 'infinite']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.02.08
[debug] Python version 3.6.8 (CPython) - Linux-4.20.8-110.current-x86_64-with-glibc2.3.4
[debug] exe versions: ffmpeg 4.1.1, ffprobe 4.1.1, rtmpdump 2.3
[debug] Proxy map: {}
[youtube] -Omnk3C-1YA: Downloading webpage
[youtube] -Omnk3C-1YA: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://r2---sn-nv0uixgoapbiu-hntl.googlevideo.com/videoplayback?txp=3535332&expire=1550875442&ip=170.249.173.18&id=o-ACI42-97PtzZHqHjmF15Ujwdwh3sbzZxKzwNJ9U1SPec&keepalive=yes&c=WEB&ipbits=0&initcwndbps=1443750&fvip=4&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&dur=192.525&clen=19587401&key=yt6&lmt=1543518327070686&signature=728C99765ED7B3D3DD49E8418CD288F1C4F0793B.4A30C105C623A23098C9CD5AC4C355085DF715A6&source=youtube&requiressl=yes&gir=yes&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&mime=video%2Fwebm&mv=m&mn=sn-nv0uixgoapbiu-hntl%2Csn-5ualdn7y&mm=31%2C29&ms=au%2Crdu&ei=0iZwXKlKx43hBLbSoagM&itag=248&pl=21&mt=1550853679&ratebypass=yes'
[download] Destination: What If You Only Ate Chips--Omnk3C-1YA.f248.webm
[debug] curl command line: curl --location -o 'What If You Only Ate Chips--Omnk3C-1YA.f248.webm.part' --header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --continue-at - --verbose --retry inf -- 'https://r2---sn-nv0uixgoapbiu-hntl.googlevideo.com/videoplayback?txp=3535332&expire=1550875442&ip=170.249.173.18&id=o-ACI42-97PtzZHqHjmF15Ujwdwh3sbzZxKzwNJ9U1SPec&keepalive=yes&c=WEB&ipbits=0&initcwndbps=1443750&fvip=4&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&dur=192.525&clen=19587401&key=yt6&lmt=1543518327070686&signature=728C99765ED7B3D3DD49E8418CD288F1C4F0793B.4A30C105C623A23098C9CD5AC4C355085DF715A6&source=youtube&requiressl=yes&gir=yes&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&mime=video%2Fwebm&mv=m&mn=sn-nv0uixgoapbiu-hntl%2Csn-5ualdn7y&mm=31%2C29&ms=au%2Crdu&ei=0iZwXKlKx43hBLbSoagM&itag=248&pl=21&mt=1550853679&ratebypass=yes'
curl: option --retry: expected a proper numerical parameter
curl: try 'curl --help' or 'curl --manual' for more information


ERROR: curl exited with code 2
  File "/usr/bin/youtube-dl", line 11, in <module>
    load_entry_point('youtube-dl==2019.2.8', 'console_scripts', 'youtube-dl')()
  File "/usr/lib/python3.6/site-packages/youtube_dl/__init__.py", line 472, in main
    _real_main(argv)
  File "/usr/lib/python3.6/site-packages/youtube_dl/__init__.py", line 462, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2006, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 805, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 859, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1640, in process_video_result
    self.process_info(new_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1907, in process_info
    partial_success = dl(fname, new_info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1852, in dl
    return fd.download(name, info)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 364, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/external.py", line 64, in real_download
    self.get_basename(), retval))
  File "/usr/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 165, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 622, in report_error
    self.trouble(error_message, tb)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 584, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.

Whenever --retries infinite is passed to youtube-dl it tries to pass --retry inf to curl while curl expects a numerical argument.

My curl version:

curl 7.64.0 (x86_64-solus-linux-gnu) libcurl/7.64.0 OpenSSL/1.0.2q zlib/1.2.11 libssh2/1.7.0_DEV nghttp2/1.36.0
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy 
@dstftw dstftw closed this in 37b239b Feb 22, 2019
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
1 participant
You can’t perform that action at this time.