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

Dev #364

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Dev #364

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.42.1-jammy
FROM mcr.microsoft.com/playwright:v1.43.0-jammy
ARG version=21.0.2.13-1
ENV LANG C.UTF-8
ENV JAVA_HOME /usr/lib/jvm/java-21-amazon-corretto
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ val ktorSwaggerUiVersion = "2.8.0"
val hibernateCoreVersion = "6.4.4.Final"
val ehcacheVersion = "3.10.8"
val glassfishJaxbVersion = "4.0.5"
val hibernateSearchVersion = "7.1.0.Final"
val hibernateSearchVersion = "7.1.1.Final"
val tikaVersion = "3.0.0-BETA"
val postgresqlVersion = "42.7.3"
val reflectionsVersion = "0.10.2"
val guiceVersion = "7.0.0"
val liquibaseCoreVersion = "4.27.0"
val quartzVersion = "2.5.0-rc1"
val guavaVersion = "33.1.0-jre"
val playwrightVersion = "1.42.0"
val playwrightVersion = "1.43.0"
val jsoupVersion = "1.17.2"
val gsonVersion = "2.10.1"
val openCvVersion = "4.9.0-0"
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/fr/shikkanime/wrappers/CrunchyrollWrapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import fr.shikkanime.utils.ObjectParser
import fr.shikkanime.utils.ObjectParser.getAsString
import fr.shikkanime.utils.ObjectParser.getNullableJsonObject
import io.ktor.client.statement.*
import java.util.*

/**
* Implementation of the Crunchyroll API
Expand Down Expand Up @@ -41,7 +42,8 @@ object CrunchyrollWrapper {
"${BASE_URL}auth/v1/token",
headers = mapOf(
"Content-Type" to "application/x-www-form-urlencoded",
"Authorization" to "Basic b2VkYXJteHN0bGgxanZhd2ltbnE6OWxFaHZIWkpEMzJqdVY1ZFc5Vk9TNTdkb3BkSnBnbzE="
"Authorization" to "Basic Y3Jfd2ViOg==",
"ETP-Anonymous-ID" to UUID.randomUUID().toString(),
),
body = "grant_type=client_id&client_id=offline_access"
)
Expand Down