Skip to content

Commit

Permalink
fix(en/animeowl): Update baseUrl (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinoarizu authored Sep 25, 2023
1 parent 98c2c7c commit 4ca6484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/en/animeowl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ext {
extName = 'AnimeOwl'
pkgNameSuffix = 'en.animeowl'
extClass = '.AnimeOwl'
extVersionCode = 13
extVersionCode = 14
libVersion = '13'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AnimeOwl : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

override val name = "AnimeOwl"

override val baseUrl by lazy { preferences.getString("preferred_domain", "https://animeowl.net")!! }
override val baseUrl = "https://anime-owl.net"

override val lang = "en"

Expand Down Expand Up @@ -334,21 +334,6 @@ class AnimeOwl : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}

override fun setupPreferenceScreen(screen: PreferenceScreen) {
val domainPref = ListPreference(screen.context).apply {
key = "preferred_domain"
title = "Preferred domain (requires app restart)"
entries = arrayOf("animeowl.net")
entryValues = arrayOf("https://animeowl.net")
setDefaultValue("https://animeowl.net")
summary = "%s"

setOnPreferenceChangeListener { _, newValue ->
val selected = newValue as String
val index = findIndexOfValue(selected)
val entry = entryValues[index] as String
preferences.edit().putString(key, entry).commit()
}
}
val videoQualityPref = ListPreference(screen.context).apply {
key = "preferred_quality"
title = "Preferred quality"
Expand Down Expand Up @@ -379,7 +364,6 @@ class AnimeOwl : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
preferences.edit().putString(key, entry).commit()
}
}
screen.addPreference(domainPref)
screen.addPreference(videoQualityPref)
screen.addPreference(videoLangPref)
}
Expand Down

0 comments on commit 4ca6484

Please sign in to comment.