WIP SoloLatino

This commit is contained in:
Cuong-Tran
2025-08-14 18:34:40 +07:00
parent ef8da1f600
commit 83ab6fa558
2 changed files with 6 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ ext {
extClass = '.SoloLatino'
themePkg = 'dooplay'
baseUrl = 'https://sololatino.net'
overrideVersionCode = 13
overrideVersionCode = 14
}
apply from: "$rootDir/common.gradle"

View File

@@ -376,7 +376,9 @@ class SoloLatino : DooPlay(
override fun getFilterList() = SoloLatinoFilters.FILTER_LIST
// ============================== Search ================================
override fun searchAnimeFromElement(element: Element): SAnime = popularAnimeFromElement(element)
override fun searchAnimeSelector() = popularAnimeSelector()
override fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList): Request {
@@ -410,6 +412,7 @@ class SoloLatino : DooPlay(
"todos" -> ""
else -> "tendencias"
},
)
if (params.isInverted) append("&orden=asc")
@@ -479,6 +482,7 @@ class SoloLatino : DooPlay(
entryValues = SERVER_LIST
setDefaultValue(PREF_SERVER_DEFAULT)
summary = "%s"
setOnPreferenceChangeListener { _, newValue ->
val selected = newValue as String
val index = findIndexOfValue(selected)
@@ -494,6 +498,7 @@ class SoloLatino : DooPlay(
entryValues = PREF_LANG_VALUES
setDefaultValue(PREF_LANG_DEFAULT)
summary = "%s"
setOnPreferenceChangeListener { _, newValue ->
val selected = newValue as String
val index = findIndexOfValue(selected)