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

Unable to download mix-playlist from youtube #3159

Closed
chenchix opened this issue Jun 25, 2014 · 3 comments
Closed

Unable to download mix-playlist from youtube #3159

chenchix opened this issue Jun 25, 2014 · 3 comments

Comments

@chenchix
Copy link

@chenchix chenchix commented Jun 25, 2014

$ youtube-dl --verbose "https://www.youtube.com/watch?v=Is2aapXTMb8&list=RDIs2aapXTMb8#t=0"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=Is2aapXTMb8&list=RDIs2aapXTMb8#t=0']
[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.6 - Linux-3.13.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[youtube:playlist] Downloading playlist PLRDIs2aapXTMb8 - add --no-playlist to just download video Is2aapXTMb8
[youtube:playlist] RDIs2aapXTMb8: Downloading Youtube mix
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 6, in
youtube_dl.main()
File "/usr/lib/python2.7/dist-packages/youtube_dl/init.py", line 804, in main
_real_main(argv)
File "/usr/lib/python2.7/dist-packages/youtube_dl/init.py", line 794, in _real_main
retcode = ydl.download(all_urls)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 982, in download
self.extract_info(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 493, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 158, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1490, in _real_extract
return self._extract_mix(playlist_id)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1464, in _extract_mix
title = clean_html(title_span)
File "/usr/lib/python2.7/dist-packages/youtube_dl/utils.py", line 403, in clean_html
html = html.replace('\n', ' ')
AttributeError: 'NoneType' object has no attribute 'replace'

@ghost
Copy link

@ghost ghost commented Jun 26, 2014

You are using very old version. In latest version it's working for me...

Please try to upgrade your youtube-dl sudo youtube-dl -U or pip or package manager.

Thanks

@tachioma
Copy link

@tachioma tachioma commented Jun 26, 2014

HI, I'm having the same issue on Ubuntu 14.04 :

johnny@Bankai:/media/nas/Music/Videos$ youtube-dl -v -f 137 http://www.youtube.com/playlist?list=PLgghpQIBpSgMr5x6m MNsCUEvEYPpGi8Pw
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', '137', 'http://www.youtube.com/playlist?list=PLgghpQIBpSgMr5x6mMNsCUEvEYPpG i8Pw']
[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.6 - Linux-3.13.0-29-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[youtube:playlist] PLgghpQIBpSgMr5x6mMNsCUEvEYPpGi8Pw: Downloading page #1
WARNING: [youtube:playlist] PLgghpQIBpSgMr5x6mMNsCUEvEYPpGi8Pw: Playlist page is missing OpenGraph title, falling b ack ...
ERROR: Unable to extract 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/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1511, in _real_extract
playlist_title = self._og_search_title(page)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 428, in _og_search_title
return self._og_search_property('title', html, *_kargs)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 416, in _og_search_property
escaped = self._search_regex(self._og_regexes(prop), html, name, flags=re.DOTALL, _kargs)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 356, 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 vers ion; type youtube-dl -U to update.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 493, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 158, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1517, in _real_extract
r'

(.?)

', page, u'title')
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 366, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 356, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call yo utube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

I've tried the -U flag (which fails with :

It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.

so tried :

sudo apt-get update
sudo apt-get upgrade

No difference :(

@ghost
Copy link

@ghost ghost commented Jun 26, 2014

Easiest way is to remove youtube-dl sudo apt-get remove youtube-dl

and install manually with

sudo wget https://yt-dl.org/downloads/2014.06.26/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
@ghost ghost closed this Jun 26, 2014
This issue was closed.
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.