This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 asession_id
when login. This is much more reliable than the session id. This cookie is generated when logged in tocrunchyroll.com
and using the curnchyroll beta.With this, a new
LoginWithEtpRt(...)
method is added which allows to login directly via theetp_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 inCrunchyroll
was replaced byetp_rt
too.The cli
login
command also stores theetp_rt
cookie instead of session id in a temporary file now.