question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crunchyroll 404 (due to forced US beta?)

See original GitHub issue

Checklist

Region

United States

Description

Attempting to download a single video from a season, ‘https://beta.crunchyroll.com/watch/GYK53DMPR/wicked-lord-shingan-reborn’ results in a 404 Not Found error, but works as expected in a browser.

I suspect this is because ALL people in the US are forcibly redirected to the “beta” site now, which is no longer really beta, and so if the extractor still tries to point at the old site, it fails for anyone who can be detected as coming from the US. I don’t currently have a way to test this via a VPN, but that would probably be the way to verify this issue. This is not a premium video.

Since Crunchyroll now owns Funimation and has decided to remove their content from competing websites, this will probably become a larger issue going forward.

Verbose log

[debug] Command-line config: ['-vU', '-sF', 'https://beta.crunchyroll.com/watch/GYK53DMPR/wicked-lord-shingan-reborn']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.03.08.1 [c0c2c57d3] (zip)
[debug] Python version 3.9.10 (CPython 64bit) - Linux-5.16.0-4-amd64-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1-3 (setts), ffprobe 4.4.1-3
[debug] Optional libraries: brotli, Cryptodome, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.03.08.1, Current version: 2022.03.08.1
yt-dlp is up to date (2022.03.08.1)
[debug] [crunchyroll:beta] Extracting URL: https://beta.crunchyroll.com/watch/GYK53DMPR/wicked-lord-shingan-reborn
[crunchyroll:beta] wicked-lord-shingan-reborn: Downloading webpage
[crunchyroll] None: Downloading webpage
[debug] [crunchyroll] Extracting URL: https://www.crunchyroll.com/love-chunibyo--other-delusions---heart-throb--/wicked-lord-shingan-reborn-648781
[crunchyroll] 648781: Downloading webpage
ERROR: [crunchyroll] 648781: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/common.py", line 637, in extract
    ie_result = self._real_extract(url)
  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/crunchyroll.py", line 406, in _real_extract
    webpage = self._download_webpage(
  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/crunchyroll.py", line 259, in _download_webpage
    return super(CrunchyrollBaseIE, self)._download_webpage(request, *args, **kwargs)
  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/common.py", line 928, in _download_webpage
    res = self._download_webpage_handle(
  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/common.py", line 796, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/common.py", line 781, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/home/wiley/bin/yt-dlp/yt_dlp/extractor/common.py", line 763, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/wiley/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3588, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 555, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 747, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tejing1commented, Mar 28, 2022

I’ve included a fix in #2955

0reactions
tejing1commented, Mar 24, 2022

My PR won’t fix this. It’s an error with how the non-beta url is being calculated from the beta page info during the redirect. For now, just get the non-beta url directly from the website when downloading from this series. Or supply login credentials if you want to actually use the beta extractor; without them it just redirects to non-beta anyway.

In this case, the correct non-beta url would be https://www.crunchyroll.com/love-chunibyo-other-delusions-heart-throb-/episode-1-wicked-lord-shingan-reborn-648781

I guess the series portion of the non-beta url isn’t always equal to the series_slug_title in the beta api. Based on this example, I’d guess it needs to squash down multiple -s in a row into a single -, but I’d like some more data before making that change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forum - How do I leave Beta? I really dislike it - Crunchyroll
I've been in the CR community for years, now, but if we're really having Beta forced on us then it's just about the...
Read more >
Issues and Complaints with Crunchyroll - Reddit
I'm tryna get on my account but it keeps forcing me onto the "Welcome to the New Crunchyroll!" page asking for a username...
Read more >
Issues and Complaints with Crunchyroll
Stop. forcing. beta. Or at very least please put the news and updated EPISODES on top, with option to opt in & out...
Read more >
Untitled
Journal l'alsace bartenheim, Rahey's furniture sydney, Hector riveros otorrino, Rio frontera entre usa y canada, Marbert rocel my bed download, ...
Read more >
Read Customer Service Reviews of www.crunchyroll.com
Join the 404 people who've already reviewed Crunchyroll. ... They're forcing us from Funimation to Crunchyroll, with the price being almost double ($5.99...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found