This commit is contained in:
kodjomoustapha
2024-05-09 17:48:53 +01:00
parent 1aab6d9919
commit 18ec609307

View File

@@ -166,7 +166,7 @@ const mangayomiSources = [{
} }
async getDetail(url) { async getDetail(url) {
url = url.startsWith("/comic/") ? url.replace("/comic/", "") : url; url = url.substringAfter("/comic/");
const res = await new Client().get(this.source.apiUrl + `/api/v3/comic2/${url}`); const res = await new Client().get(this.source.apiUrl + `/api/v3/comic2/${url}`);
const data = JSON.parse(res.body)["results"]["comic"]; const data = JSON.parse(res.body)["results"]["comic"];
const title = this.stringUTF8(data["name"]); const title = this.stringUTF8(data["name"]);