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

Not being able to login #103

Closed
2 tasks done
Oujiii opened this issue Feb 1, 2019 · 45 comments
Closed
2 tasks done

Not being able to login #103

Oujiii opened this issue Feb 1, 2019 · 45 comments

Comments

@Oujiii
Copy link

Oujiii commented Feb 1, 2019

Describe the bug
If I tried to only login, without downloading anything, it works. The second I put a series or an episode to download, it doesn't work anymore

Expected behavior
Except it to login and download the episode

Please fill theses informations:
(Add a X between brackets to make them ticked if relevant)

  • OS: Linux Mint 19.1
  • I'm using the latest version of Crunchy
  • I have a premium accrount on CR
  • My region in the world (country or continent): BR
  • Serie you get a problem with (and specify which episode if it is specific to one): Anyone
  • The command line you are running Crunchy with: crunchy https://www.crunchyroll.com/hinamatsuri/episode-1-arrival-of-the-psychokinetic-girl-768969
  • The message Crunchy is giving you, if any:
 * INFO : Crunchy version 1.4.5
 * WARN : Authentication failed: 
 * INFO : Seems we are not currently logged. Let's login!
 * WARN : Authentication failed: 
 * ERROR: Authentication failed: 
@johnfigs
Copy link

johnfigs commented Feb 3, 2019

This is also happening for me.

@Godzil
Copy link
Owner

Godzil commented Feb 3, 2019

I’m currently away and can’t look at that or test it.

But if you run in the same folder I don’t see why it should not work. It you use the default login method, it is fidly and need couple or retry to work (I never figured what’s happening on CR side probably something stupid but I never managed to get proper infos)

So use the —retry command with more than three to make sure then launch again with a single series it should log at some point (or just rerun it a couple of time until it log properly)

All the information that crunchy store are in the folder you are running it, so if you change the folder it is not going to work.

@Oujiii
Copy link
Author

Oujiii commented Feb 3, 2019

CR probably changed the way they handle logins, as none of the tools that I tested to download from CR worked. Probably something on their side.

I hope you could please look at it when you have the time and availability. Thank you.

@Godzil
Copy link
Owner

Godzil commented Feb 3, 2019

I will don’t worry as I’m using the tool too :)

@Kitt3120
Copy link

Kitt3120 commented Feb 5, 2019

Same :(
<>@kellerarbeitskrafteinheit:~$ crunchy -u <> -p <> -l de --retry 10 -o ./Anime/ https://www.crunchyroll.com/de/mob-psycho-100

  • INFO : Crunchy version 1.4.5
  • WARN : Authentication failed:
  • INFO : Seems we are not currently logged. Let's login!
  • WARN : Authentication failed:
  • ERROR: Authentication failed:
    Done!

@johnfigs
Copy link

johnfigs commented Feb 5, 2019 via email

@Kitt3120
Copy link

Kitt3120 commented Feb 5, 2019

I am using anime-dl right now and it works perfectly! Maybe look into and see how they did it? Cause I would really like to use crunchy as it has more options.

Edit: Can't get crunchy to work :/ Still failing after several attempts. I think they changed something on their side.

@Godzil
Copy link
Owner

Godzil commented Feb 5, 2019

Anime-dl is in python and use the same login mecanism, the main difference, the cloud flare lib is really different and I suspect that some issues we have are due to that lib I’m using. I will check if there is any update (I doubt) or a new lib for that, that probably would fix some issues.

I’m surprised it try just once, does your config JSON file state 1 for retry?

@Kitt3120
Copy link

Kitt3120 commented Feb 5, 2019

So, I tested another tool called crunchyroll-dl (https://github.com/simplymemes/crunchyroll-dl), which is written in JavaScript. It tells me that the login worked but the media file is not found, but it doesn't matter, just wanted to check if it's able to log me in.

Nope, in my config.json file it states 10 for retry.
{
"format": "ass",
"tag": "CrunchyRoll",
"resolution": "1080",
"retry": "10",
"user": "////",
"pass": "////",
"crlang": "de",
"output": "./",
"nametmpl": "{SERIES_TITLE} - s{SEASON_NUMBER}e{EPISODE_NUMBER} - {EPISODE_TITLE} - [{TAG}]"
}

Also, the login of crunchyroll-dl really seems to work, cause it detects that my account is premium.
What I found out on anime-dl is that it tells you that it successfully logged in, even tho if it was not successful. I tried logging in with my username, but an invalid password and it said that it was successful, but just downloaded in normal "free" quality. So that's a bug in anime-dl, I guess.

@Godzil
Copy link
Owner

Godzil commented Feb 5, 2019

Crunchyroll-dl use the token auth method which crunchy support but I don’t and can’t put the token and other values needed in crunchy code because there are some CR related project project that was taken down because of that.

Crunchy support that method of login, it is somewhat documented (probably should be done better) but as I said I will not give api token and URLs and leave that to the user to find them, i could explain but same as for giving them it could put the project at risk, i would prefer to leave that to someone else not linked with that project to explain how it work.

@Kitt3120
Copy link

Kitt3120 commented Feb 5, 2019

Oh yeah, I understand. I would not give out a token in one of my projects, too. A friend of mine made his Discord bot open source, which ended up in a group of kids stealing discord bot tokens from github and running a script, which destroys all the servers the bot is on.

@Godzil
Copy link
Owner

Godzil commented Feb 5, 2019

Good news though, it seems that the cloud flare lib I’m using has been updated a lot since the last update of crunchy, it may solve some of the issues!

@Kitt3120
Copy link

Kitt3120 commented Feb 5, 2019

Looking forward to an update then :D

@Kitt3120
Copy link

Kitt3120 commented Feb 5, 2019

A quick guess: Could the login fail because my password has some special characters in, that are not escaped and messes up the request?
Going to change my password and see how it goes...
crunchy -u '/////' -p 'test12345' --retry 10 https://www.crunchyroll.com/de/mob-psycho-100/

  • INFO : Crunchy version 1.4.5
  • WARN : Authentication failed:
  • INFO : Seems we are not currently logged. Let's login!
  • WARN : Authentication failed:
  • ERROR: Authentication failed:
    Done!

Nope

@Godzil
Copy link
Owner

Godzil commented Feb 5, 2019

Well it is still good to know, that would have been a big if it was an issue, thanks for testing

@KamiSamaKun
Copy link

You have alternate solution ?

@Godzil
Copy link
Owner

Godzil commented Mar 4, 2019

Updated dependencies and released 1.4.6, I can't test right now, and can't promise it will fix anything, but cloudscraper had a lot of changed recently so it may works better.

@KamiSamaKun
Copy link

Great :)

@Godzil
Copy link
Owner

Godzil commented Mar 4, 2019

Does not seems to fix anything. Not sure what is happening there, it's like if nothing happened and load the login page for the first time after we sent the credential.

I probably miss something in the form, but don't really have the time to look further on that for the next couple of days.

Sorry about the inconvenience, hope to find a solution soon

@Jimm1432
Copy link

Jimm1432 commented Apr 4, 2019

same issue, really hope you fix it because i love this for keeping my library up to date.

also i can never get the resolution option to work. it always downloads in 1080p if i'm logged in and changing res in config or using -R 720 etc doesn't work.

@Godzil
Copy link
Owner

Godzil commented May 7, 2019

I'm currently clueless on what is happening with web login. It is like something is missing and it send me back to the login page, but I send the exact same thing as the variables the web browser is sending. I hope it is not linked with the recaptcha embedded in the page, if it is, I fear I will have no solution for that on that point.

The only way would be to use an alternative way of login. And they are "dangerous" to explain publicly, at least for me the project maintainer.

I need to do a bit more instrumenting on their website to see what is happening, but for now, it is really not clear.

@Godzil Godzil self-assigned this May 7, 2019
@Godzil Godzil added this to the 1.5 milestone May 7, 2019
@Godzil Godzil mentioned this issue May 7, 2019
1 task
@Godzil Godzil pinned this issue May 7, 2019
@Oujiii
Copy link
Author

Oujiii commented May 7, 2019

I don't know if this might help, but I saw someone else mentioning on the youtube-dl repo that to bypass captcha would be logging into the site and exporting the cookies in a Netscape txt format and then passing the cookies using youtube-dl.

@Godzil
Copy link
Owner

Godzil commented May 7, 2019

Crunchy already support that method, in theory, but prooved to not work as it is right now.

@storm134
Copy link

storm134 commented Jun 3, 2019

just letting you know i am using windows 10 version 1.4.6 and have no issue logging in or downloading (1080p only right now but that's fine). i think you might be on the right track with a lib issue. as much as i love linux (fedora fan myself) sometime's the lib are not the best.

@Godzil
Copy link
Owner

Godzil commented Jun 3, 2019

@storm134 What login method are you using? (and in which area of the world are you or VPN exit point if using a VPN ?)

@storm134
Copy link

storm134 commented Jun 3, 2019

I am in canada, no vpn, not sure what you mean buy login method, using dos prompt and C:\Drivers\crunchy>crunchy -u [username] -p [password] --output c:\drivers\crunchy @https://www.crunchyroll.com/fight-league-gear-gadget-generators/episode-14-g-wrench-maximum-g-785953

just tested and still works

@Godzil
Copy link
Owner

Godzil commented Jun 3, 2019

Interesting.

Thanks I will check some more thing

@storm134
Copy link

storm134 commented Jun 3, 2019

Just wanted to let you know, did a virtualbox of fedora 30 (64bit). and have no problem login in or downloading same video as before.

@storm134
Copy link

storm134 commented Jun 7, 2019

Little more info, had some time this afternoon so did a mint 19 setup worked fine for me.

crunchy -u [username] -p [password] --output /home/user/ @https://www.crunchyroll.com/hinamatsuri/episode-1-arrival-of-the-psychokinetic-girl-768969

HINAMATSURI - s01e01 - Arrival of the Psychokinetic Girl! - [CrunchyRoll] : F > HINAMATSURI - s01e01 - Arrival of the Psych > HINAMATSURI - s01e01 - Arrival of the Psychokinetic Girl! - [CrunchyRoll] : Finished! (00:05:17)
Done!

@Oujiii
Copy link
Author

Oujiii commented Jun 8, 2019

Still the same issue for me in Mint 19.1
Just reinstalled it, the config is right, the cookies are set, but I still get the same issue.
I set the .cookies.json manually and it "logged on", but I still can't download any episodes.

Error if I try to download a single episode:

$ crunchy https://www.crunchyroll.com/a-centaurs-life/episode-1-when-all-is-said-and-done-everyone-loves-kisses-did-you-know-that-a-marathon-is-a-microcosm-of-life-742023
 * INFO : Crunchy version 1.4.6
 * INFO : You have a premium account! Good!
 * INFO : Checking availability for NarutoNatsume YuujinchouGintamaHayate the Combat Butler! (S1 e S2)
 * WARN : No episodes found for NarutoNatsume YuujinchouGintamaHayate the Combat Butler! (S1 e S2). Could it be a movie?
Done!

Error if I try to download a series:

$ crunchy https://www.crunchyroll.com/a-centaurs-life
 * INFO : Crunchy version 1.4.6
 * INFO : You have a premium account! Good!
 * WARN : Retrying to fetch episodes list from5 / 5
 * WARN : Retrying to fetch episodes list from4 / 5
 * WARN : Retrying to fetch episodes list from3 / 5
 * WARN : Retrying to fetch episodes list from2 / 5
 * WARN : Retrying to fetch episodes list from1 / 5
 * ERROR: {}
 * ERROR: Cannot get episodes from "https://www.crunchyroll.com/a-centaurs-life", please rerun later
Done!

@Godzil
Copy link
Owner

Godzil commented Jun 8, 2019

@Oujiii for the direct episode link, you have to put a @ in front of the URL, for the second, it could be something else, they could have change the page layout. As it says you are logged that’s a different problem as this bug. Could you please run it again with the debug switch set, and create a new bug ticket? Thanks

@Oujiii
Copy link
Author

Oujiii commented Jun 8, 2019

@Godzil Yeah, I realized about the @ and it worked. I will open a new ticket regarding the download issue itself.

But the issue here still persists, in order for it to work, I had to get the cookies myself and manually insert them in the .json file.

@Oujiii
Copy link
Author

Oujiii commented Jun 8, 2019

Just an update, I think the login issue might be related to the fact that at least for my language, the website now appends a /pt-br/ for every page. So, the home page is
https://www.crunchyroll.com/pt-br/
An example of a series page:
https://www.crunchyroll.com/pt-br/the-rising-of-the-shield-hero/
An episode page:
https://www.crunchyroll.com/pt-br/the-rising-of-the-shield-hero/episode-16-filolial-queen-783053

I installed Crunchy in an Ubuntu 18.04 VPS and I was able to log in sucessfully. The VPS is located in the US. I also tried in a VPS located in Germany and it didn't work. If you change the website to German, it will append a "de" to the website linkpages. That's might be causing the issue.

Also god damn Cloudflare is rate limiting me everytime

@Kitt3120
Copy link

Kitt3120 commented Jun 28, 2019

@Oujiii This might be why I can't login, I am from Germany and it is using the German Website for me, cause Crunchyroll blocks my VPN.

@Godzil
Copy link
Owner

Godzil commented Jun 28, 2019

I think I've done test in that regards, and haven't seen any improvment there. Will try more tests.

@Godzil
Copy link
Owner

Godzil commented Jul 31, 2019

So thanks to @Ronserruya, this is maybe fixed. I keep this ticket open for now, so please complain here if you still have issues

@Jimm1432
Copy link

Jimm1432 commented Aug 2, 2019

Logs in but doesn't download premium only videos and all downloads are in 320p.

@Godzil
Copy link
Owner

Godzil commented Apr 13, 2020

as seen in many other reported bugs, this shows that “we are logged” but something get wrong after as it no longer consider us as being logged.

@Godzil
Copy link
Owner

Godzil commented Apr 13, 2020

Just published version 1.5.1 which should properly fix the login issue, and all other related (resolution, can't download premium etc..)

Please update and test.

@Ruke805
Copy link

Ruke805 commented Apr 14, 2020

I tried with the new version and the login still not working

@Godzil
Copy link
Owner

Godzil commented Apr 14, 2020

Could you explain a bit more what's happening on your side?
That's not really helpful as is.

@Ruke805
Copy link

Ruke805 commented Apr 14, 2020

I updated normally, and run this command: crunchy -u username@hotmail.com -p password --output C:\Anime https://www.crunchyroll.com/pt-br/digimon-adventure-2020 --verbose

And the result is:

  • INFO : Crunchy version 1.5.1
  • WARN : Authentication failed:
  • INFO : Seems we are not currently logged. Let's login!
  • WARN : Authentication failed:
  • ERROR: Authentication failed:

Could you explain a bit more what's happening on your side?
That's not really helpful as is.

@Godzil
Copy link
Owner

Godzil commented Apr 15, 2020

Try deleting the config.json file in your Anime folder and run crunchy once with the -u option to clear up the stored cookies, you need to pass the —output option else it will not work.

@Ruke805
Copy link

Ruke805 commented Apr 15, 2020

Not worked, I remove the path from the command, deleted the config.json and the same error:

crunchy -u user@gmail.com -p password https://www.crunchyroll.com/nisekoi --verbose

  • INFO : Crunchy version 1.5.1
  • INFO : No locale set. Setting to the one reported by CR: "en"
  • WARN : Authentication failed:
  • INFO : Seems we are not currently logged. Let's login!
  • WARN : Authentication failed:
  • ERROR: Authentication failed:
    Done!

I opened the json file, and was changed normally

@Godzil
Copy link
Owner

Godzil commented Apr 27, 2020

I'm closing this ticket. If anyone still have issue with login, please open a new one.

@Godzil Godzil closed this as completed Apr 27, 2020
@Godzil Godzil unpinned this issue Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants