Flame Comics: fix double slash in manga/chapter URL (#6372)
This commit is contained in:
parent
7e0c565a4d
commit
bac2cb25fb
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Flame Comics'
|
extName = 'Flame Comics'
|
||||||
extClass = '.FlameComics'
|
extClass = '.FlameComics'
|
||||||
extVersionCode = 35
|
extVersionCode = 36
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -175,7 +175,7 @@ class FlameComics : HttpSource() {
|
||||||
override fun mangaDetailsRequest(manga: SManga): Request = GET(
|
override fun mangaDetailsRequest(manga: SManga): Request = GET(
|
||||||
dataApiReqBuilder().apply {
|
dataApiReqBuilder().apply {
|
||||||
val seriesID =
|
val seriesID =
|
||||||
("$baseUrl/${manga.url}").toHttpUrl().pathSegments.last()
|
("$baseUrl${manga.url}").toHttpUrl().pathSegments.last()
|
||||||
addPathSegment("series")
|
addPathSegment("series")
|
||||||
addPathSegment("$seriesID.json")
|
addPathSegment("$seriesID.json")
|
||||||
addQueryParameter("id", seriesID)
|
addQueryParameter("id", seriesID)
|
||||||
|
@ -185,7 +185,7 @@ class FlameComics : HttpSource() {
|
||||||
|
|
||||||
override fun chapterListRequest(manga: SManga): Request = mangaDetailsRequest(manga)
|
override fun chapterListRequest(manga: SManga): Request = mangaDetailsRequest(manga)
|
||||||
|
|
||||||
override fun getMangaUrl(manga: SManga): String = "$baseUrl/${manga.url}"
|
override fun getMangaUrl(manga: SManga): String = "$baseUrl${manga.url}"
|
||||||
|
|
||||||
override fun mangaDetailsParse(response: Response): SManga = SManga.create().apply {
|
override fun mangaDetailsParse(response: Response): SManga = SManga.create().apply {
|
||||||
val seriesData =
|
val seriesData =
|
||||||
|
@ -232,8 +232,8 @@ class FlameComics : HttpSource() {
|
||||||
|
|
||||||
override fun pageListRequest(chapter: SChapter): Request = GET(
|
override fun pageListRequest(chapter: SChapter): Request = GET(
|
||||||
dataApiReqBuilder().apply {
|
dataApiReqBuilder().apply {
|
||||||
val seriesID = ("$baseUrl/${chapter.url}").toHttpUrl().pathSegments[2]
|
val seriesID = ("$baseUrl${chapter.url}").toHttpUrl().pathSegments[1]
|
||||||
val token = ("$baseUrl/${chapter.url}").toHttpUrl().pathSegments[3]
|
val token = ("$baseUrl${chapter.url}").toHttpUrl().pathSegments[2]
|
||||||
addPathSegment("series")
|
addPathSegment("series")
|
||||||
addPathSegment(seriesID)
|
addPathSegment(seriesID)
|
||||||
addPathSegment("$token.json")
|
addPathSegment("$token.json")
|
||||||
|
@ -243,7 +243,7 @@ class FlameComics : HttpSource() {
|
||||||
headers,
|
headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun getChapterUrl(chapter: SChapter): String = "$baseUrl/${chapter.url}"
|
override fun getChapterUrl(chapter: SChapter): String = "$baseUrl${chapter.url}"
|
||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val chapter =
|
val chapter =
|
||||||
|
|
Loading…
Reference in New Issue