From 1a25cea0d665aefdc422ffe074d50c4a72fc0fe8 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Mon, 31 Oct 2022 23:05:27 +0600 Subject: [PATCH] Tweak how `getChapterUrl` works (#8392) --- .../java/eu/kanade/tachiyomi/source/online/HttpSource.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source-api/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt b/source-api/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt index a43e84ff8..64eef245d 100644 --- a/source-api/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt +++ b/source-api/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt @@ -375,7 +375,11 @@ abstract class HttpSource : CatalogueSource { * @return url of the chapter */ open fun getChapterUrl(chapter: SChapter): String { - return pageListRequest(chapter).url.toString() + return if (chapter.url.startsWith("http")) { + chapter.url + } else { + baseUrl + chapter.url + } } /**