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'
|
extName = 'MangaPark v3'
|
||||||
pkgNameSuffix = 'all.mangapark'
|
pkgNameSuffix = 'all.mangapark'
|
||||||
extClass = '.MangaParkFactory'
|
extClass = '.MangaParkFactory'
|
||||||
extVersionCode = 12
|
extVersionCode = 13
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ open class MangaPark(
|
|||||||
|
|
||||||
override val name: String = "MangaPark v3"
|
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
|
override val supportsLatest = true
|
||||||
|
|
||||||
@ -88,7 +88,6 @@ open class MangaPark(
|
|||||||
override fun popularMangaFromElement(element: Element): SManga =
|
override fun popularMangaFromElement(element: Element): SManga =
|
||||||
browseMangaFromElement(element)
|
browseMangaFromElement(element)
|
||||||
|
|
||||||
|
|
||||||
// Search
|
// Search
|
||||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
||||||
return when {
|
return when {
|
||||||
@ -300,10 +299,9 @@ open class MangaPark(
|
|||||||
client.newCall(GET(CryptoJSUrl, headers)).execute().body!!.string()
|
client.newCall(GET(CryptoJSUrl, headers)).execute().body!!.string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun getFilterList() = mpFilters.getFilterList()
|
override fun getFilterList() = mpFilters.getFilterList()
|
||||||
|
|
||||||
//Unused Stuff
|
// Unused Stuff
|
||||||
|
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
|
||||||
throw UnsupportedOperationException("Not used")
|
throw UnsupportedOperationException("Not used")
|
||||||
@ -311,9 +309,6 @@ open class MangaPark(
|
|||||||
override fun imageUrlParse(document: Document): String =
|
override fun imageUrlParse(document: Document): String =
|
||||||
throw UnsupportedOperationException("Not used")
|
throw UnsupportedOperationException("Not used")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
const val PREFIX_ID_SEARCH = "id:"
|
const val PREFIX_ID_SEARCH = "id:"
|
||||||
|
@ -58,22 +58,21 @@ class MangaParkFilters {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
is TypeFilter -> {
|
is TypeFilter -> {
|
||||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||||
}
|
}
|
||||||
is DemographicFilter -> {
|
is DemographicFilter -> {
|
||||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||||
}
|
}
|
||||||
is ContentFilter -> {
|
is ContentFilter -> {
|
||||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||||
}
|
}
|
||||||
is GenreFilter -> {
|
is GenreFilter -> {
|
||||||
includedGenre += filter.state.filter { it.isIncluded() } .map { it.value }
|
includedGenre += filter.state.filter { it.isIncluded() }.map { it.value }
|
||||||
excludedGenre += filter.state.filter { it.isExcluded() } .map { it.value }
|
excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +100,6 @@ class MangaParkFilters {
|
|||||||
minMaxToChapter(minChap, maxChap)
|
minMaxToChapter(minChap, maxChap)
|
||||||
)
|
)
|
||||||
}.toString()
|
}.toString()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun minMaxToChapter(minChap: Int?, maxChap: Int?): String? {
|
private fun minMaxToChapter(minChap: Int?, maxChap: Int?): String? {
|
||||||
@ -152,7 +150,6 @@ class MangaParkFilters {
|
|||||||
class MinChapterFilter : TextFilter("Min. Chapters")
|
class MinChapterFilter : TextFilter("Min. Chapters")
|
||||||
class MaxChapterFilter : TextFilter("Max. Chapters")
|
class MaxChapterFilter : TextFilter("Max. Chapters")
|
||||||
|
|
||||||
|
|
||||||
// Publication Filter
|
// Publication Filter
|
||||||
class PublicationItem(val name: String, val value: String)
|
class PublicationItem(val name: String, val value: String)
|
||||||
|
|
||||||
@ -176,7 +173,7 @@ class MangaParkFilters {
|
|||||||
defaultStatusIndex
|
defaultStatusIndex
|
||||||
)
|
)
|
||||||
|
|
||||||
//Type
|
// Type
|
||||||
class TypeItem(name: String, val value: String) : Filter.TriState(name)
|
class TypeItem(name: String, val value: String) : Filter.TriState(name)
|
||||||
|
|
||||||
private val typeList: List<TypeItem> = listOf(
|
private val typeList: List<TypeItem> = listOf(
|
||||||
@ -192,7 +189,7 @@ class MangaParkFilters {
|
|||||||
class TypeFilter(name: String, typeList: List<TypeItem>) :
|
class TypeFilter(name: String, typeList: List<TypeItem>) :
|
||||||
Filter.Group<TypeItem>(name, typeList)
|
Filter.Group<TypeItem>(name, typeList)
|
||||||
|
|
||||||
//Demographic
|
// Demographic
|
||||||
class DemographicItem(name: String, val value: String) : Filter.TriState(name)
|
class DemographicItem(name: String, val value: String) : Filter.TriState(name)
|
||||||
|
|
||||||
private val demographicList: List<DemographicItem> = listOf(
|
private val demographicList: List<DemographicItem> = listOf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user