aniage: drop ``watch
`` from url
Need re-add to library
This commit is contained in:
parent
6fc0d8701c
commit
310878191e
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 5
|
||||
version = 6
|
||||
|
||||
dependencies{
|
||||
implementation("com.google.code.gson:gson:2.9.0")
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue