aniage: drop ``watch`` from url

Need re-add to library
This commit is contained in:
CakesTwix 2023-11-02 23:10:11 +02:00
parent 6fc0d8701c
commit 310878191e
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 5
version = 6
dependencies{
implementation("com.google.code.gson:gson:2.9.0")

View file

@ -126,7 +126,7 @@ class AniageProvider : MainAPI() {
// Detailed information
override suspend fun load(url: String): LoadResponse {
val animeID = url.replace("$mainUrl/", "")
val document = app.get("$mainUrl/watch/$animeID").document
val document = app.get("$mainUrl/$animeID").document
val jsonObject = JSONObject(document.selectFirst("script[type*=application/json]")!!.html())
val buildId = jsonObject.getString("buildId")
@ -204,7 +204,7 @@ class AniageProvider : MainAPI() {
return newAnimeLoadResponse(
animeJSON.pageProps.title,
"$mainUrl/watch/$animeID",
"$mainUrl/$animeID",
tvType,
) {
this.posterUrl = "$cdnUrl${animeJSON.pageProps.posterId}"