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

'NoneType' object has no attribute 'replace' while downloading YouTube Mix #3914

Closed
cyberjacob opened this issue Oct 9, 2014 · 2 comments
Closed

Comments

@cyberjacob
Copy link
Contributor

@cyberjacob cyberjacob commented Oct 9, 2014

Getting a nice little AttributeError after downloading the first video in a YouTube Mix playlist in version 2014.10.05.2 under Python 2.7.1 on OS X 10.7.5. The mix in question is RDHCs-z409g1yaka

youtube-dl -vix --audio-format mp3 RDHCs-z409g1yakapyth
**CUT**
[download] Destination: Celine Dion - Right in front of you-Tm30Taxdl58.m4a
[download] 100% of 3.88MiB in 00:02
[ffmpeg] Destination: Celine Dion - Right in front of you-Tm30Taxdl58.mp3
[debug] ffmpeg command line: ffmpeg -y -i 'Celine Dion - Right in front of you-Tm30Taxdl58.m4a' -vn -acodec libmp3lame -aq 5 'Celine Dion - Right in front of you-Tm30Taxdl58.mp3'
Deleting original file Celine Dion - Right in front of you-Tm30Taxdl58.m4a (pass -k to keep)
[youtube:playlist] RDHCs-z409g1yaka: Downloading Youtube mix
ERROR: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 524, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 193, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1137, in _real_extract
    return self._extract_mix(playlist_id)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1109, in _extract_mix
    title = clean_html(title_span)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 447, in clean_html
    html = html.replace('\n', ' ')
AttributeError: 'NoneType' object has no attribute 'replace'
pangea:Birthday ccuk$ youtube-dl --version
2014.10.05.2
pangea:Birthday ccuk$
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 12, 2014

Could you post the original mix url?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 12, 2016

Closing due to no response for a long time.

@dstftw dstftw closed this Jun 12, 2016
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.