Skip to content

Commit

Permalink
Flame Comics: fix double slash in manga/chapter URL (#6372)
Browse files Browse the repository at this point in the history
  • Loading branch information
vetleledaal authored and cuong-tran committed Nov 29, 2024
1 parent 9c7011d commit 823c258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/en/flamecomics/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Flame Comics'
extClass = '.FlameComics'
extVersionCode = 35
extVersionCode = 36
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class FlameComics : HttpSource() {
override fun mangaDetailsRequest(manga: SManga): Request = GET(
dataApiReqBuilder().apply {
val seriesID =
("$baseUrl/${manga.url}").toHttpUrl().pathSegments.last()
("$baseUrl${manga.url}").toHttpUrl().pathSegments.last()
addPathSegment("series")
addPathSegment("$seriesID.json")
addQueryParameter("id", seriesID)
Expand All @@ -185,7 +185,7 @@ class FlameComics : HttpSource() {

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 {
val seriesData =
Expand Down Expand Up @@ -232,8 +232,8 @@ class FlameComics : HttpSource() {

override fun pageListRequest(chapter: SChapter): Request = GET(
dataApiReqBuilder().apply {
val seriesID = ("$baseUrl/${chapter.url}").toHttpUrl().pathSegments[2]
val token = ("$baseUrl/${chapter.url}").toHttpUrl().pathSegments[3]
val seriesID = ("$baseUrl${chapter.url}").toHttpUrl().pathSegments[1]
val token = ("$baseUrl${chapter.url}").toHttpUrl().pathSegments[2]
addPathSegment("series")
addPathSegment(seriesID)
addPathSegment("$token.json")
Expand All @@ -243,7 +243,7 @@ class FlameComics : HttpSource() {
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> {
val chapter =
Expand Down

0 comments on commit 823c258

Please sign in to comment.