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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant