Tweak how getChapterUrl
works (#8392)
This commit is contained in:
parent
2ecbcdf4bd
commit
1a25cea0d6
@ -375,7 +375,11 @@ abstract class HttpSource : CatalogueSource {
|
|||||||
* @return url of the chapter
|
* @return url of the chapter
|
||||||
*/
|
*/
|
||||||
open fun getChapterUrl(chapter: SChapter): String {
|
open fun getChapterUrl(chapter: SChapter): String {
|
||||||
return pageListRequest(chapter).url.toString()
|
return if (chapter.url.startsWith("http")) {
|
||||||
|
chapter.url
|
||||||
|
} else {
|
||||||
|
baseUrl + chapter.url
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user