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

[CRUNCHYROLL] Download fails with ASCII encoding error. #26371

Open
RandomContributor opened this issue Aug 18, 2020 · 0 comments
Open

[CRUNCHYROLL] Download fails with ASCII encoding error. #26371

RandomContributor opened this issue Aug 18, 2020 · 0 comments

Comments

@RandomContributor
Copy link

@RandomContributor RandomContributor commented Aug 18, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--cookies', u'cookiefile', u'-vF', u'https://www.crunchyroll.com/idolish7']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.17 (CPython) - Linux-5.4.0-42-generic-x86_64
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Proxy map: {}
[crunchyroll] 7: Downloading webpage
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 474, in main
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 464, in _real_main
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2019, in download
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
  File "/usr/bin/youtube-dl/youtube_dl/extractor/crunchyroll.py", line 426, in _real_extract
  File "/usr/bin/youtube-dl/youtube_dl/extractor/crunchyroll.py", line 277, in _download_webpage
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 794, in _download_webpage
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, in urlopen
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 2580, in http_open
  File "/usr/lib/python2.7/urllib2.py", line 1202, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1082, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1121, in _send_request
    self.putheader(hdr, value)
  File "/usr/lib/python2.7/httplib.py", line 1057, in putheader
    values = [str(v) for v in values]
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 644: ordinal not in range(128)

Description

Crunchyroll download fails with the message above. Note that this also applies to other URLs. Cookies were given to bypass the issue occuring in #25744 .

@RandomContributor RandomContributor changed the title [CRUNCHYROLL] [CRUNCHYROLL] Download fails with ASCII decoding error. Aug 18, 2020
@RandomContributor RandomContributor changed the title [CRUNCHYROLL] Download fails with ASCII decoding error. [CRUNCHYROLL] Download fails with ASCII encoding error. Aug 18, 2020
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
1 participant
You can’t perform that action at this time.