From bac2cb25fb61cb5b984437d5ffab173dbc9ec0e0 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Fri, 29 Nov 2024 03:31:55 +0100 Subject: [PATCH] Flame Comics: fix double slash in manga/chapter URL (#6372) --- src/en/flamecomics/build.gradle | 2 +- .../tachiyomi/extension/en/flamecomics/FlameComics.kt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/en/flamecomics/build.gradle b/src/en/flamecomics/build.gradle index 2d2042a40..46a89b078 100644 --- a/src/en/flamecomics/build.gradle +++ b/src/en/flamecomics/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Flame Comics' extClass = '.FlameComics' - extVersionCode = 35 + extVersionCode = 36 } apply from: "$rootDir/common.gradle" diff --git a/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt b/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt index 606c57ce5..8cc73955f 100644 --- a/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt +++ b/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt @@ -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) @@ -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 = @@ -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") @@ -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 { val chapter =