Revert "Tweak how getChapterUrl works (#8392)" (#8427)

This reverts commit 1a25cea0d6.
This commit is contained in:
stevenyomi 2022-11-03 21:23:59 +08:00 committed by GitHub
parent 37ff3b4920
commit b006fe3a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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