einstein95 / crunchy-xml-decoder

GNU General Public License v2.0
35 stars 14 forks source link

Login problems #50

Open TPBT-OFFICIAL opened 8 years ago

TPBT-OFFICIAL commented 8 years ago

I seem to be having problems login in, i have a free membership account that logins in fine but i have a premium (trial) account that doesn't want to login for some reason, i think theres been some recent changes on their website could anyone please help getting this solved?

alzamer2 commented 8 years ago

Can you show us picture what you get when you log in You can datg and drop here

TPBT-OFFICIAL commented 8 years ago

You mean on crunchyroll or crunchy-xml-decoder?

alzamer2 notifications@github.com wrote:

Can you show us picture what you get when you log in You can datg and drop here — Reply to this email directly or view it on GitHub.

TPBT-OFFICIAL commented 8 years ago

It seems it doesn't login if its a free trial but i canceled the free trial and tried again and it logged in (premium+ plan)

alzamer2 commented 8 years ago

does the console close when you try to login or show that the login was failure, i want to know if the problem in the code or the structure of the login site

TPBT-OFFICIAL commented 8 years ago

Unfortunately I can't test that anymore but from what I remember after u tried to login it just said "login failed" and then closed.

alzamer2 notifications@github.com wrote:

does the console close when you try to login or show that the login was failure, i want to know if the problem in the code or the structure of the login site — Reply to this email directly or view it on GitHub.

alzamer2 commented 8 years ago

Hmm As you said i think the problem is at the site If i have free time at weekend i will try solve it but i cant promise any thing

TPBT-OFFICIAL commented 8 years ago

I can give you acess to a trial account I have if you want to test it.

alzamer2 notifications@github.com wrote:

does the console close when you try to login or show that the login was failure, i want to know if the problem in the code or the structure of the login site — Reply to this email directly or view it on GitHub.

alzamer2 commented 8 years ago

No proplem i can create trial account Thanks

ghost commented 8 years ago

I'm also having a login failed issue and after pressing any key the window instantly closes.

http://i.imgur.com/Vsg6ur9.png

draguelo commented 8 years ago

I am having the same issue as ganon11000. I seem to recall it typing something in the password on it the last time I logged onto it. Now I'm not even sure if it's typing anything for the password or not but I keep trying to put in the password and it continually fails login and closes off just as it does for Ganon11000 in the picture he posted. Any assistance would be awesome. Thanks for the coding and hard work at getting this working.

ghost commented 8 years ago

Out of interest does your password contain special characters?

draguelo commented 8 years ago

no, it doesn't contain any. I logged in just fine on the site and it logs in just fine on an older version of it. I would just use it if it'd actually download the videos like the newer version does. I've also tried uninstalling and reinstalling Python 2.7.5 as well as trying different versions of it an Pycrypto. I have a workaround for now so it's not like up the creek without a paddle. I can still use the guest login to download the subtitles so I download the video using a getflv downloader since that'll download the video without the subtitle. Maybe I can figure it out eventually but I'm going to retire for the evening and try again tomorrow sometime after work ends.

danny-ml commented 8 years ago

I am having the same issue as ganon11000. I can only login in the old version. I've tried it on two computers with different OS (Win 7, Win XP) with the same result.

login failed login

Davdomlan commented 8 years ago

Same here... I am having the exact same problem,I cant loggin, any help would be great. Thank you

albireon commented 8 years ago

how can I get the old version?

TPBT-OFFICIAL commented 8 years ago

Like all of you, im also having the same problem AGAIN, it got fixed after i changed from free trial to actual premium account but just today i opened it and it didn't work again.

ghost commented 8 years ago

I got an old version to login and then edited the info from cookies.txt to the cookies file on the new version and all is now working

TPBT-OFFICIAL commented 8 years ago

@ganon11000 could you please share that version?

alzamer2 commented 8 years ago

I'm sorry to say this but when i wrote the new login code i forget to add login test for trial so if your account is trial no mater what it will say it's failur so after the login consol close try to download

ghost commented 8 years ago

I'm not using the trial and get the issue still. My work arround is (1.) using this https://userscloud.com/sh9nc1zl4cal (password is "github") on _make_cookies.bat -> (2.) attempting login on the new version -> (3.) opening cookies.txt from the old version and cookies from the new version and copying the old versions details listed here http://i.imgur.com/M5zpYYj.png to the corrosponding possisions here http://i.imgur.com/V9SFnxx.png (leaving the others as they were generated by the new version in step 2)

Hopefully this workaround will work for you and possibly help work out what's wrong?

harmfuldata commented 8 years ago

Was having the same issue. The cause appears to be in the check against the membership URL after the login attempt in the following file: https://github.com/einstein95/crunchy-xml-decoder/blob/7162b201a845221b9f5325d2cff9056100efaa0b/crunchy-xml-decoder/login.py#L20

The current URL appears to generate a 404 error, and removing the trailing front slash appears to resolve the issue.

TPBT-OFFICIAL commented 8 years ago

@harmfuldata That fixed it, thank you https://a.tpb.lc/xolgvc.png

TPBT-OFFICIAL commented 8 years ago

Confirmed fix from @harmfuldata You need to find the file login.py Then edit the following line: site = session.get('https://www.crunchyroll.com/acct/membership/', headers=headers, verify=True).text You need to change it to site = session.get('https://www.crunchyroll.com/acct/membership', headers=headers, verify=True).text

In the end it should look like something like this: https://a.tpb.lc/cqtlkx.png

After that try to login again and it should be working fine.

danny-ml commented 8 years ago

Confirmed fix from @harmfuldata Thank you very much. login_successful

Davdomlan commented 8 years ago

Thanks @harmfuldata, It worked like a charm.

CraigMack69 commented 8 years ago

thanks for the fix

R9delta commented 8 years ago

Editing the login.py didn't seem to do the trick for me so I personally found a way around it. Your cookie file (just "cookie", no extension) which should be in whatever same folder you've got crunchy-xml-decoder.py extracted in should look like so: crunchyrollcookieexample

...with the exception of your own proper values filled in the blank spaces. Obviously mine are edited out. You can find out the values you need by using an internet browser like Google Chrome and having the extension "EditThisCookie" Installed. Log in the crunchyroll.com, right click anywhere on the page and click Edit this Cookie. You'll find everything you need so edit them in and save.