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 youtube mix playlist #3869

Closed
Holi0317 opened this issue Oct 2, 2014 · 3 comments
Closed

Can't download youtube mix playlist #3869

Holi0317 opened this issue Oct 2, 2014 · 3 comments

Comments

@Holi0317
Copy link

@Holi0317 Holi0317 commented Oct 2, 2014

I was trying to download a youtube mix playlist, https://www.youtube.com/watch?v=gFIyFzZG9hk&list=RDgFIyFzZG9hk, for example. When I paste it to youtube-dl and download them, youtube-dl reports an error.
Log:

youtube-dl -x https://www.youtube.com/watch\?v\=gFIyFzZG9hk\&list\=RDgFIyFzZG9hk
[youtube:playlist] Downloading playlist PLRDgFIyFzZG9hk - add --no-playlist to just download video gFIyFzZG9hk
[youtube:playlist] RDgFIyFzZG9hk: 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'

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 2, 2014

It works fine here could you post the output of youtube-dl 'https://www.youtube.com/watch?v=gFIyFzZG9hk&list=RDgFIyFzZG9hk' --verbose?

@Holi0317
Copy link
Author

@Holi0317 Holi0317 commented Oct 2, 2014

youtube-dl 'https://www.youtube.com/watch?v=gFIyFzZG9hk&list=RDgFIyFzZG9hk' --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=gFIyFzZG9hk&list=RDgFIyFzZG9hk', '--verbose']
[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-36-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[youtube:playlist] Downloading playlist PLRDgFIyFzZG9hk - add --no-playlist to just download video gFIyFzZG9hk
[youtube:playlist] RDgFIyFzZG9hk: 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'

@phihag
Copy link
Contributor

@phihag phihag commented Oct 2, 2014

You are using an outdated version of youtube-dl. We tried to document what to do in our FAQ, but here's the gist of it: Either contact the Ubuntu packaging team or run

sudo apt-get remove -y youtube-dl
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r

I'm closing this issue now, but if you have any questions about this problem, feel free to post.

@phihag phihag closed this Oct 2, 2014
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.