fix other fucky wucky
CI / Prepare job (push) Successful in 3s Details
CI / Build individual modules (push) Failing after 55s Details
CI / Publish repo (push) Has been skipped Details

This commit is contained in:
Draff 2024-02-18 20:51:30 +00:00
parent 20ccec6d45
commit 8d78ebe12f
3 changed files with 15 additions and 6 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'MANGA Plus by SHUEISHA' extName = 'MANGA Plus by SHUEISHA'
extClass = '.MangaPlusFactory' extClass = '.MangaPlusFactory'
extVersionCode = 50 extVersionCode = 51
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -250,7 +250,7 @@ class MangaPlus(
private fun mangaDetailsRequest(mangaUrl: String): Request { private fun mangaDetailsRequest(mangaUrl: String): Request {
val titleId = mangaUrl.substringAfterLast("/") 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 { override fun mangaDetailsParse(response: Response): SManga {
@ -377,11 +377,12 @@ class MangaPlus(
summary = preferences.appVersion?.ifBlank { "The current app version" } ?: "", summary = preferences.appVersion?.ifBlank { "The current app version" } ?: "",
key = "${VER_PREF_KEY}_$lang", key = "${VER_PREF_KEY}_$lang",
) )
screen.addPreference(qualityPref) screen.addPreference(qualityPref)
screen.addPreference(splitPref) screen.addPreference(splitPref)
} }
private fun PreferenceScreen.addEditTextPreference( private fun PreferenceScreen.addEditTextPreference(
title: String, title: String,
default: String, default: String,
summary: String, summary: String,
@ -499,7 +500,7 @@ class MangaPlus(
private val SharedPreferences.splitImages: Boolean private val SharedPreferences.splitImages: Boolean
get() = getBoolean("${SPLIT_PREF_KEY}_$lang", SPLIT_PREF_DEFAULT_VALUE) get() = getBoolean("${SPLIT_PREF_KEY}_$lang", SPLIT_PREF_DEFAULT_VALUE)
private val SharedPreferences.appVersion: String? private val SharedPreferences.appVersion: String?
get() = getString("${VER_PREF_KEY}_$lang", VER_PREF_DEFAULT_VALUE) get() = getString("${VER_PREF_KEY}_$lang", VER_PREF_DEFAULT_VALUE)
private val SharedPreferences.accountSecret: String? private val SharedPreferences.accountSecret: String?
@ -527,6 +528,14 @@ private const val SPLIT_PREF_DEFAULT_VALUE = true
private const val VER_PREF_KEY = "appVer" private const val VER_PREF_KEY = "appVer"
private const val VER_PREF_DEFAULT_VALUE = "" private const val VER_PREF_DEFAULT_VALUE = ""
private const val SECRET_PREF_KEY = "accountSecret" private const val SECRET_PREF_KEY = "accountSecret"
private const val SECRET_PREF_DEFAULT_VALUE = "" 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()

View File

@ -120,7 +120,6 @@ class TitleDetailView(
add("Simulrelease") add("Simulrelease")
} }
// funne hack thing to make the first letter capital
add(titleLabels.planType.substring(0, 1).uppercase() + titleLabels.planType.substring(1)) add(titleLabels.planType.substring(0, 1).uppercase() + titleLabels.planType.substring(1))
if (isOneShot) { if (isOneShot) {
@ -340,3 +339,4 @@ class MangaPage(
val height: Int, val height: Int,
val encryptionKey: String? = null, val encryptionKey: String? = null,
) )