From b006fe3a2246e5ceb9bc08d01971a29a678e33b6 Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:23:59 +0800 Subject: [PATCH] Revert "Tweak how `getChapterUrl` works (#8392)" (#8427) This reverts commit 1a25cea0d665aefdc422ffe074d50c4a72fc0fe8. --- .../java/eu/kanade/tachiyomi/source/online/HttpSource.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 64eef245d..a43e84ff8 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,11 +375,7 @@ abstract class HttpSource : CatalogueSource { * @return url of the chapter */ open fun getChapterUrl(chapter: SChapter): String { - return if (chapter.url.startsWith("http")) { - chapter.url - } else { - baseUrl + chapter.url - } + return pageListRequest(chapter).url.toString() } /**