reverted base URL to legacy v35 server (#9851)
Temporary measure till new parser is made for the front end update in v36, this fix will likely break eventually, v36 retains the same backend as v35 so are the exact same from user perspective
This commit is contained in:
parent
33088997db
commit
7fd3d5fd5e
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaPark v3'
|
||||
pkgNameSuffix = 'all.mangapark'
|
||||
extClass = '.MangaParkFactory'
|
||||
extVersionCode = 12
|
||||
extVersionCode = 13
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ open class MangaPark(
|
|||
|
||||
override val name: String = "MangaPark v3"
|
||||
|
||||
override val baseUrl: String = "https://mangapark.net"
|
||||
override val baseUrl: String = "https://v35.mangapark.net" //temporary url change to keep the ext working after update return to https://mangapark.net or https://v36.mangapark.net at later date
|
||||
|
||||
override val supportsLatest = true
|
||||
|
||||
|
@ -88,7 +88,6 @@ open class MangaPark(
|
|||
override fun popularMangaFromElement(element: Element): SManga =
|
||||
browseMangaFromElement(element)
|
||||
|
||||
|
||||
// Search
|
||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
||||
return when {
|
||||
|
@ -300,10 +299,9 @@ open class MangaPark(
|
|||
client.newCall(GET(CryptoJSUrl, headers)).execute().body!!.string()
|
||||
}
|
||||
|
||||
|
||||
override fun getFilterList() = mpFilters.getFilterList()
|
||||
|
||||
//Unused Stuff
|
||||
// Unused Stuff
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
|
||||
throw UnsupportedOperationException("Not used")
|
||||
|
@ -311,9 +309,6 @@ open class MangaPark(
|
|||
override fun imageUrlParse(document: Document): String =
|
||||
throw UnsupportedOperationException("Not used")
|
||||
|
||||
|
||||
|
||||
|
||||
companion object {
|
||||
|
||||
const val PREFIX_ID_SEARCH = "id:"
|
||||
|
|
|
@ -58,22 +58,21 @@ class MangaParkFilters {
|
|||
}
|
||||
}
|
||||
is TypeFilter -> {
|
||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
||||
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||
}
|
||||
is DemographicFilter -> {
|
||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
||||
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||
}
|
||||
is ContentFilter -> {
|
||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
||||
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||
}
|
||||
is GenreFilter -> {
|
||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
||||
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,7 +100,6 @@ class MangaParkFilters {
|
|||
minMaxToChapter(minChap, maxChap)
|
||||
)
|
||||
}.toString()
|
||||
|
||||
}
|
||||
|
||||
private fun minMaxToChapter(minChap: Int?, maxChap: Int?): String? {
|
||||
|
@ -152,7 +150,6 @@ class MangaParkFilters {
|
|||
class MinChapterFilter : TextFilter("Min. Chapters")
|
||||
class MaxChapterFilter : TextFilter("Max. Chapters")
|
||||
|
||||
|
||||
// Publication Filter
|
||||
class PublicationItem(val name: String, val value: String)
|
||||
|
||||
|
@ -176,7 +173,7 @@ class MangaParkFilters {
|
|||
defaultStatusIndex
|
||||
)
|
||||
|
||||
//Type
|
||||
// Type
|
||||
class TypeItem(name: String, val value: String) : Filter.TriState(name)
|
||||
|
||||
private val typeList: List<TypeItem> = listOf(
|
||||
|
@ -192,7 +189,7 @@ class MangaParkFilters {
|
|||
class TypeFilter(name: String, typeList: List<TypeItem>) :
|
||||
Filter.Group<TypeItem>(name, typeList)
|
||||
|
||||
//Demographic
|
||||
// Demographic
|
||||
class DemographicItem(name: String, val value: String) : Filter.TriState(name)
|
||||
|
||||
private val demographicList: List<DemographicItem> = listOf(
|
||||
|
|
Loading…
Reference in New Issue