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

Unsupported URL (youtube) #2402

Closed
Zeriuno opened this issue Feb 17, 2014 · 2 comments
Closed

Unsupported URL (youtube) #2402

Zeriuno opened this issue Feb 17, 2014 · 2 comments

Comments

@Zeriuno
Copy link

@Zeriuno Zeriuno commented Feb 17, 2014

Running youtube-dl (up to date), I found an unsupported URL. Doing as I am told, I report the issue.

youtube-dl --verbose http://www.youtube.com/watch?&v=NTJUFQmHbvc [1] 34096 Roccaforte:~ daniele$ [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?'] [debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8' [debug] youtube-dl version 2014.02.17 [debug] Python version 2.7.1 - Darwin-11.4.2-x86_64-i386-64bit [debug] Proxy map: {} [generic] watch?: Requesting header [redirect] Following redirect to http://www.youtube.com/ [generic] : Requesting header WARNING: Falling back on generic information extractor. [generic] : Downloading webpage [generic] : Extracting information ERROR: Unsupported URL: http://www.youtube.com/; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update. Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info ie_result = ie.extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 158, in extract return self._real_extract(url) File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 380, in _real_extract raise ExtractorError('Unsupported URL: %s' % url) ExtractorError: Unsupported URL: http://www.youtube.com/; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

@ghost
Copy link

@ghost ghost commented Feb 17, 2014

If you have ampersand in url, you must use quotes.

@phihag phihag closed this in 2eb5d31 Feb 17, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Feb 17, 2014

As pulpe said, ampersands will be interpreted by the shell and not even reach youtube-dl (as you can see in the output line Command-line args). Either escape ampersands with backslashes or put the whole URL in quotes, like

$ youtube-dl 'http://www.youtube.com/watch?&v=NTJUFQmHbvc'
[youtube] Setting language
[youtube] NTJUFQmHbvc: Downloading webpage
[youtube] NTJUFQmHbvc: Downloading video info webpage
[youtube] NTJUFQmHbvc: Extracting video information
[download] Destination: Lea Verou - CSS in the 4th Dimension - JSConf.Asia 2013-NTJUFQmHbvc.mp4
[download] 100% of 378.31MiB in 00:33

Starting with the next version, youtube-dl will warn you for this truncated URL, too:

$ youtube-dl http://www.youtube.com/watch?&v=NTJUFQmHbvc
[1] 12695
phihag@t4:~/projects/youtube-dl$ ERROR: Did you forget to quote the URL? Remember that & is
a meta character in most shells, so you want to put the URL in quotes, like
youtube-dl "http://www.youtube.com/watch?feature=foo&v=BaW_jenozKc"  or simply  youtube-dl BaW_jenozKc  .
@ytdl-org ytdl-org deleted a comment from sgruenwald Jun 17, 2019
@ytdl-org ytdl-org deleted a comment from EgbieAndersonUku1 Jun 17, 2019
@ytdl-org ytdl-org deleted a comment from russellbateman Jun 17, 2019
@ytdl-org ytdl-org deleted a comment from Zeriuno Jun 17, 2019
@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.