Minor cleanup
This commit is contained in:
parent
c6af0456ed
commit
7273e48960
@ -57,8 +57,6 @@ class UnsortedPreferences(
|
||||
|
||||
fun exhShowSettingsUploadWarning() = preferenceStore.getBoolean("eh_showSettingsUploadWarning2", true)
|
||||
|
||||
fun autoSolveCaptcha() = preferenceStore.getBoolean("eh_autosolve_captchas", false)
|
||||
|
||||
fun logLevel() = preferenceStore.getInt("eh_log_level", 0)
|
||||
|
||||
fun exhAutoUpdateFrequency() = preferenceStore.getInt("eh_auto_update_frequency", 1)
|
||||
|
@ -40,7 +40,7 @@ class Pururin(delegate: HttpSource, val context: Context) :
|
||||
// Support direct URL importing
|
||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
||||
val trimmedIdQuery = query.trim().removePrefix("id:")
|
||||
val newQuery = if (trimmedIdQuery.toIntOrNull() ?: -1 >= 0) {
|
||||
val newQuery = if ((trimmedIdQuery.toIntOrNull() ?: -1) >= 0) {
|
||||
"$baseUrl/gallery/$trimmedIdQuery/-"
|
||||
} else {
|
||||
query
|
||||
|
Loading…
x
Reference in New Issue
Block a user