ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.35k stars 9.95k forks source link

Error with Top Tracks playlist #1868

Closed waddles closed 10 years ago

waddles commented 10 years ago

Similar to #1839

Eg. From Youtube homepage, click the Music channel on the left, then Play next to Top Tracks in the main body area.

$ youtube-dl -xkt --verbose --audio-format=mp3 --playlist-end=20 'http://www.youtube.com/watch?v=E0CazRHB0so&list=TLvYGWqBK1SGSiVcFok6SzMDjrayc8VmSo' [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-xkt', '--verbose', '--audio-format=mp3', '--playlist-end=20', 'http://www.youtube.com/watch?v=E0CazRHB0so&list=TLvYGWqBK1SGSiVcFok6SzMDjrayc8VmSo'] WARNING: Assuming --restrict-filenames since file system encoding cannot encode all charactes. Set the LC_ALL environment variable to fix this. [debug] youtube-dl version 2013.11.29 [debug] Git HEAD: b138de7 [debug] Python version 3.3.2 - Linux-3.12.0-1-ARCH-i686-with-arch [debug] Proxy map: {} [youtube:playlist] Downloading playlist PLTLvYGWqBK1SGSiVcFok6SzMDjrayc8VmSo - add --no-playlist to just download video E0CazRHB0so [youtube:playlist] TLvYGWqBK1SGSiVcFok6SzMDjrayc8VmSo: 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 "/home/user/src/youtube-dl/youtube_dl/YoutubeDL.py", line 428, in extract_info ie_result = ie.extract(url) File "/home/user/src/youtube-dl/youtube_dl/extractor/common.py", line 131, in extract return self._real_extract(url) File "/home/user/src/youtube-dl/youtube_dl/extractor/youtube.py", line 1595, in _real_extract playlist_title = self._og_search_title(page) File "/home/user/src/youtube-dl/youtube_dl/extractor/common.py", line 356, in _og_search_title return self._og_search_property('title', html, _kargs) File "/home/user/src/youtube-dl/youtube_dl/extractor/common.py", line 344, in _og_search_property escaped = self._search_regex(self._og_regexes(prop), html, name, flags=re.DOTALL, _kargs) File "/home/user/src/youtube-dl/youtube_dl/extractor/common.py", line 284, in _search_regex raise RegexNotFoundError(u'Unable to extract %s' % _name) youtube_dl.utils.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.

jaimeMF commented 10 years ago

With the last version you can run youtube-dl 'yttoplist:music:Top Tracks' to download the list. The direct url will not work because it depends on a cookie (the list id changes each time you enter youtube). Thanks for the report!