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

Failure with Youtube Mix (not playlist) download #1839

Closed
malcra opened this issue Nov 26, 2013 · 5 comments
Closed

Failure with Youtube Mix (not playlist) download #1839

malcra opened this issue Nov 26, 2013 · 5 comments
Assignees
Labels
bug

Comments

@malcra
Copy link

@malcra malcra commented Nov 26, 2013

youtube-dl --extract-audio --audio-format mp3 http://www.youtube.com/watch?list=RDz6h-rQmyaag
[youtube:playlist] RDz6h-rQmyaag: Downloading page #1
ERROR: Unable to extract OpenGraph title; 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.
[mherbert@mherbert Albums]$ youtube-dl --verbose --extract-audio --audio-format mp3 http://www.youtube.com/watch?list=RDz6h-rQmyaag
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--extract-audio', '--audio-format', 'mp3', 'http://www.youtube.com/watch?list=RDz6h-rQmyaag']
[debug] youtube-dl version 2013.11.26
[debug] Python version 2.7.5 - Linux-3.11.8-200.fc19.i686.PAE-i686-with-fedora-19-Schrödinger’s_Cat
[debug] Proxy map: {}
[youtube:playlist] RDz6h-rQmyaag: Downloading page #1
ERROR: Unable to extract OpenGraph title; 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/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 428, in extract_info
ie_result = ie.extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 131, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1572, in _real_extract
playlist_title = self._og_search_title(page)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 355, in _og_search_title
return self._og_search_property('title', html, *_kargs)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 343, in _og_search_property
escaped = self._search_regex(self._og_regexes(prop), html, name, flags=re.DOTALL, *_kargs)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 283, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract OpenGraph title; 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.

Also fails without the --extract-audio options

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 26, 2013

Are you sure you are trying to download a playlist?, it looks like the url has a video id: RDz6h-rQmya.
The video at http://www.youtube.com/watch?v=RDz6h-rQmya is not available and http://www.youtube.com/watch?list=RDz6h-rQmyaag redirects me to the main YouTube page.
Where did you get the url?

@malcra
Copy link
Author

@malcra malcra commented Nov 26, 2013

The cleaner URL is
http://www.youtube.com/watch?v=QEQBfJwYlLY&list=RDDprmuBbi0N0 and it's not a Playlist, but a Youtube Mix a different type of format for the list identifier.
No problems with playlists, as long as you remember to quote the URL, to avoid backgrounding the process and then only getting the first item
youtube-dl --extract-audio --audio-format mp3 "http://www.youtube.com/watch?v=OtfXPFRg2gw&list=PL4694D83EBFE0B8FB"

youtube-dl --verbose --extract-audio --audio-format mp3 "http://www.youtube.com/watch?v=QEQBfJwYlLY&list=RDDprmuBbi0N0"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--extract-audio', '--audio-format', 'mp3', 'http://www.youtube.com/watch?v=QEQBfJwYlLY&list=RDDprmuBbi0N0']
[debug] youtube-dl version 2013.11.26
[debug] Python version 2.7.5 - Linux-3.11.8-200.fc19.i686.PAE-i686-with-fedora-19-Schrödinger’s_Cat
[debug] Proxy map: {}
[youtube:playlist] Downloading playlist PLRDDprmuBbi0N0 - add --no-playlist to just download video QEQBfJwYlLY
[youtube:playlist] RDDprmuBbi0N0: Downloading page #1
ERROR: Unable to extract OpenGraph title; 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/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 428, in extract_info
ie_result = ie.extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 131, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1572, in _real_extract
playlist_title = self._og_search_title(page)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 355, in _og_search_title
return self._og_search_property('title', html, *_kargs)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 343, in _og_search_property
escaped = self._search_regex(self._og_regexes(prop), html, name, flags=re.DOTALL, *_kargs)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 283, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract OpenGraph title; 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.

@malcra
Copy link
Author

@malcra malcra commented Nov 26, 2013

Okay, doing some further research on this:

  • You Tube Mix seems to be randomly generate lists of up to 49 related videos, so the list ID is generated from the selected video URL, with an R (for Random ?) in front

I did notice that the 'PL' prefix is being added in the initial comment

[youtube:playlist] Downloading playlist PLRDDprmuBbi0N0 - add --no-playlist to just download video QEQBfJwYlLY

but doesn't appear in the subsequent line.

@ghost ghost assigned jaimeMF Nov 26, 2013
@jaimeMF jaimeMF closed this in 652cdaa Nov 26, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 26, 2013

The fix will be available in the next release, thanks for the report!

@phihag
Copy link
Contributor

@phihag phihag commented Nov 28, 2013

This fix has been added into youtube-dl 2013.11.28. Type sudo youtube-dl -U to update.

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
3 participants
You can’t perform that action at this time.