Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

With some episodes i have problems with the download #22

Closed
Askadelion opened this issue Apr 15, 2022 · 7 comments
Closed

With some episodes i have problems with the download #22

Askadelion opened this issue Apr 15, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@Askadelion
Copy link

With some episodes i have problems with the download, i get the error:

=> Logged in
=> Failed to parse url 1
An error occurred: failed to get episodes: could not find any matching episode

Download in the debug mode:

[debug] Executing `archive` command with 1 arg(s)
[debug] Validating arguments
[debug] FFmpeg detected
[debug] Using following audio locales: de-DE, ja-JP
[debug] Using auto merge behavior
[debug] Using resolution 'best'
[debug] Logging in
[debug] Logged in with username ...
[debug] Logged in
[debug] Parsing url 1
[debug] Failed to parse url 1

An error occurred: failed to get episodes: could not find any matching episode

this error come at the folow episodes:
http://www.crunchyroll.com/de/skeleton-knight-in-another-world/episode-2-a-first-job-a-girls-wish-and-an-approaching-shadow-842578
http://www.crunchyroll.com/de/the-dawn-of-the-witch/episode-2-dont-call-me-a-traitor-842670

@bytedream bytedream added bug Something isn't working cli and removed library labels Apr 15, 2022
@bytedream
Copy link
Member

bytedream commented Apr 15, 2022

As fastest fix, I recommend using crunchyroll beta urls. These are always safe to use since the ids / names which are required by the api are fully contained by the url. Crunchyroll classic urls does not have these api friendly structure thus crunchyroll-go extracts the series and episode names from it and fires a search request after them. And this search request does not always return correct results, as we can see here.

Corresponding beta urls:

This error never happened to me but I knew it would come up at some point...

@bytedream
Copy link
Member

Fixed in new release v2.1.0.

@BraveSail
Copy link

BraveSail commented Jul 23, 2022

Same here in lastest version.

The old episode url can be redirected to the new one with logged in, then we can find the new episode ID in the headers['location'] which can used in the new api, I think it's safer this way than search.

@Askadelion
Copy link
Author

The redirect is not immediately active with some episodes series it often takes hours or days until the redirect is active. So there is nothing for sure.

@bytedream
Copy link
Member

Same here in lastest version.

The old episode url can be redirected to the new one with logged in, then we can find the new episode ID in the headers['location'] which can used in the new api, I think it's safer this way than search.

Thanks for the suggestion, that's actually a very good and saver way than search!

@bytedream bytedream reopened this Jul 23, 2022
@bytedream
Copy link
Member

The redirect is not immediately active with some episodes series it often takes hours or days until the redirect is active. So there is nothing for sure.

I can check for the redirect first and if it's active, use the redirect target beta url, and if it's not active, just use the search way.

@bytedream
Copy link
Member

bytedream commented Jul 23, 2022

Update: This does not work since crunchyroll uses cloudflare as its hoster (or as proxy to their servers). Cloudflare notices that this specific request does not come from a browser but from crunchy-cli / crunchyroll-go and blocks the request.

So the only solution to this stays to not use classic urls at all :/

@bytedream bytedream closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants