Tweak how getChapterUrl works (#8392)

This commit is contained in:
AntsyLich 2022-10-31 23:05:27 +06:00 committed by GitHub
parent 2ecbcdf4bd
commit 1a25cea0d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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