This commit is contained in:
alex 2024-01-08 02:46:42 +07:00
parent f160b61835
commit 09b5b76260
2 changed files with 1244 additions and 444 deletions

File diff suppressed because it is too large Load diff

View file

@ -743,7 +743,8 @@ suspend fun getCrunchyrollToken(): CrunchyrollAccessToken {
val token = tryParseJson<CrunchyrollToken>(client.newCall(request).execute().body.string())
val headers = mapOf("Authorization" to "${token?.tokenType} ${token?.accessToken}")
val cms = app.get("$crunchyrollAPI/index/v2", headers = headers).parsedSafe<CrunchyrollToken>()?.cms
val cms =
app.get("$crunchyrollAPI/index/v2", headers = headers).parsedSafe<CrunchyrollToken>()?.cms
return CrunchyrollAccessToken(
token?.accessToken,
token?.tokenType,