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

Extend login mechanism #34

Merged
merged 6 commits into from
May 30, 2022
Merged

Extend login mechanism #34

merged 6 commits into from
May 30, 2022

Conversation

bytedream
Copy link
Member

@bytedream bytedream commented May 30, 2022

This PR switches (almost) the entire login process to use beta api endpoints. Login via session id is sometimes not possible in the master branch, only god knows the reason for this. This is one part which is fixed by this PR.

Internally, the etp_rt cookie is now used instead of a session_id when login. This is much more reliable than the session id. This cookie is generated when logged in to crunchyroll.com and using the curnchyroll beta.
With this, a new LoginWithEtpRt(...) method is added which allows to login directly via the etp_rt cookie. LoginWithSessionID(...) is deprecated because of its unreliability and will be removed later until session id login is removed completely or login with it does not work for a longer period of time.
The session_id field in Crunchyroll was replaced by etp_rt too.

The cli login command also stores the etp_rt cookie instead of session id in a temporary file now.

@bytedream bytedream merged commit e31b873 into next/v3 May 30, 2022
@bytedream bytedream deleted the v3/feature/full-beta-login branch May 30, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant