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

Can't download from youtube anymore after updating to latest version #11232

Closed
rudolphos opened this issue Nov 18, 2016 · 4 comments
Closed

Can't download from youtube anymore after updating to latest version #11232

rudolphos opened this issue Nov 18, 2016 · 4 comments

Comments

@rudolphos
Copy link

@rudolphos rudolphos commented Nov 18, 2016

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.11.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 2016.11.18

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably 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

So this is the script I usually use as .bat where I input youtube video URL or playlist URL (%input%)

set /p input="Input URL: "
youtube-dl -ci --write-thumbnail --sub-format ass/srt/best --write-auto-sub -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 "/Videos/%%(uploader)s - %%(title)s (%%(id)s).%%(ext)s" %input%

It depends on the video, some videos start downloading, but with some the cmd window just closes.

C:\Users\COMPUTER\Desktop\ytdl>youtube-dl -ci --write-thumbnail --sub-format ass/srt/best --write-auto-sub -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 "/Videos/%(uploader)s - %(title)s (%(id)s).%(ext)s" https://www.youtube.com/watch?v=videoID
WARNING: The url doesn't specify the protocol, trying with http
[generic] %(uploader)s - %(title)s (%(id)s): Requesting header
WARNING: Could not send HEAD request to http:///Videos/%(uploader)s - %(title)s (%(id)s).%(ext)s: <urlopen error no host given>
[generic] %(uploader)s - %(title)s (%(id)s): Downloading webpage
ERROR: Unable to download webpage: <urlopen error no host given> (caused by URLError('no host given',))
...
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 18, 2016

You're missing -o before "/Videos/%(uploader)s - %(title)s (%(id)s).%(ext)s"

@yan12125 yan12125 closed this Nov 18, 2016
@rudolphos
Copy link
Author

@rudolphos rudolphos commented Nov 18, 2016

Thanks, it works now. I guess this is a something new, because it was working all the time until I updated.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 18, 2016

What's your original version? -o is there for more than 1 year.

@rudolphos
Copy link
Author

@rudolphos rudolphos commented Nov 18, 2016

I guess I might have somehow accidentally removed the -o.
Because I checked the other .bat script which I have (downloads batch of videos, and it has --output).

youtube-dl -ci --write-thumbnail --sub-format ass/srt/best --write-auto-sub -f bestvideo+bestaudio/best --output "%%(uploader)s - %%(title)s (%%(id)s).%%(ext)s" --batch-file="ytdllinks.txt"

Or maybe it wasn't there at all and just started showing errors after the latest few versions of youtube-dl.
Anyway, it works now, thanks for the help.

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.