fix other fucky wucky
This commit is contained in:
parent
20ccec6d45
commit
8d78ebe12f
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'MANGA Plus by SHUEISHA'
|
||||
extClass = '.MangaPlusFactory'
|
||||
extVersionCode = 50
|
||||
extVersionCode = 51
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -250,7 +250,7 @@ class MangaPlus(
|
|||
private fun mangaDetailsRequest(mangaUrl: String): Request {
|
||||
val titleId = mangaUrl.substringAfterLast("/")
|
||||
|
||||
return GET("$APP_API_URL/title_detailV3?title_id=$titleId&lang=eng&os=android&os_ver=30&app_ver=${preferences.appVersion}&secret=${preferences.accountSecret}&format=json", headers)
|
||||
return GET("$APP_API_URL/title_detailV3?title_id=$titleId&lang=eng&os=android&os_ver=30&app_ver=${preferences.appVersion}&secret=${preferences.accountSecret}&format=json", newHeaders)
|
||||
}
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
|
@ -377,6 +377,7 @@ class MangaPlus(
|
|||
summary = preferences.appVersion?.ifBlank { "The current app version" } ?: "",
|
||||
key = "${VER_PREF_KEY}_$lang",
|
||||
)
|
||||
|
||||
screen.addPreference(qualityPref)
|
||||
screen.addPreference(splitPref)
|
||||
}
|
||||
|
@ -527,6 +528,14 @@ private const val SPLIT_PREF_DEFAULT_VALUE = true
|
|||
|
||||
private const val VER_PREF_KEY = "appVer"
|
||||
private const val VER_PREF_DEFAULT_VALUE = ""
|
||||
|
||||
private const val SECRET_PREF_KEY = "accountSecret"
|
||||
private const val SECRET_PREF_DEFAULT_VALUE = ""
|
||||
|
||||
|
||||
private const val NOT_FOUND_SUBJECT = "Not Found"
|
||||
|
||||
private const val TITLE_THUMBNAIL_PATH = "title_thumbnail_portrait_list"
|
||||
|
||||
private val ID_SEARCH_PATTERN = "^id:(\\d+)$".toRegex()
|
||||
private val CHAPTER_ID_SEARCH_PATTERN = "^chapter-id:(\\d+)$".toRegex()
|
||||
|
||||
|
|
|
@ -120,7 +120,6 @@ class TitleDetailView(
|
|||
add("Simulrelease")
|
||||
}
|
||||
|
||||
// funne hack thing to make the first letter capital
|
||||
add(titleLabels.planType.substring(0, 1).uppercase() + titleLabels.planType.substring(1))
|
||||
|
||||
if (isOneShot) {
|
||||
|
@ -340,3 +339,4 @@ class MangaPage(
|
|||
val height: Int,
|
||||
val encryptionKey: String? = null,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue