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 a channel with spaces in user name #8248

Closed
kurogetsusai opened this issue Jan 15, 2016 · 4 comments
Closed

Can't download a channel with spaces in user name #8248

kurogetsusai opened this issue Jan 15, 2016 · 4 comments

Comments

@kurogetsusai
Copy link

@kurogetsusai kurogetsusai commented Jan 15, 2016

Can't download a channel with spaces in user name. I tried to escape them or inserting a %20 instead, but nothing works. Is there a workaround to do it?

$ youtube-dl --verbose -ciw 'ytuser:Raon Lee'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-ciw', u'ytuser:Raon\xa0Lee']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 2.7.10 - Linux-4.2.0-23-generic-x86_64-with-Ubuntu-15.10-wily
[debug] exe versions: ffmpeg 2.7.4-0ubuntu0.15.10.1, ffprobe 2.7.4-0ubuntu0.15.10.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:user] Raon: Downloading channel page
WARNING: Unable to download webpage: HTTP Error 404: Not Found
ERROR: expected string or buffer
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 650, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1412, in _real_extract
    channel_page, 'channel id', default=None)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 537, in _search_regex
    mobj = re.search(p, string, flags)
  File "/usr/lib/python2.7/re.py", line 146, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

My version:

$ youtube-dl --version
2015.06.04.1

A package from Ubuntu 15.10's repo.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 15, 2016

Use full channel URL.

@dstftw dstftw closed this Jan 15, 2016
@kurogetsusai
Copy link
Author

@kurogetsusai kurogetsusai commented Jan 15, 2016

How? It doesn't work either:

$ youtube-dl --verbose -ciw 'https://www.youtube.com/channel/UCQn1FqrR2OCjSe6Nl4GlVHw'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-ciw', u'https://www.youtube.com/channel/UCQn1FqrR2OCjSe6Nl4GlVHw']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 2.7.10 - Linux-4.2.0-23-generic-x86_64-with-Ubuntu-15.10-wily
[debug] exe versions: ffmpeg 2.7.4-0ubuntu0.15.10.1, ffprobe 2.7.4-0ubuntu0.15.10.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:channel] UCQn1FqrR2OCjSe6Nl4GlVHw: Downloading channel page
[youtube:playlist] UUQn1FqrR2OCjSe6Nl4GlVHw: Downloading webpage
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 650, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1365, in _real_extract
    return self._extract_playlist(playlist_id)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1339, in _extract_playlist
    page, 'title')
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 564, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 555, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 15, 2016

You are using an outdated version of youtube-dl. Read our FAQ if you have troubles updating.

@kurogetsusai
Copy link
Author

@kurogetsusai kurogetsusai commented Jan 15, 2016

Okay, it works now, thanks! I should have tried it before opening an issue, sorry.

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.