Tweak how getChapterUrl works (#8392)

(cherry picked from commit 1a25cea0d665aefdc422ffe074d50c4a72fc0fe8)
This commit is contained in:
AntsyLich 2022-10-31 23:05:27 +06:00 committed by Jobobby04
parent 55918ddb15
commit 9cc5831689

View File

@ -409,7 +409,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
}
}
/**