Skip to content

Commit

Permalink
fix(all/torrentio): Fix default provider (#2894)
Browse files Browse the repository at this point in the history
  • Loading branch information
ni3x authored Feb 8, 2024
1 parent a77dcad commit c9629f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/all/torrentioanime/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Torrentio Anime (Torrent / Debrid)'
extClass = '.Torrentio'
extVersionCode = 1
extVersionCode = 2
containsNsfw = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {
appendQueryParam("sort", sortKey?.let { setOf(it) })

val token = preferences.getString(PREF_TOKEN_KEY, null)
val debridProvider = preferences.getString(PREF_DEBRID_KEY, null)
val debridProvider = preferences.getString(PREF_DEBRID_KEY, "none")

when {
token.isNullOrBlank() && debridProvider != "none" -> {
Expand All @@ -442,7 +442,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {
override fun videoListParse(response: Response): List<Video> {
val responseString = response.body.string()
val streamList = json.decodeFromString<StreamDataTorrent>(responseString)
val debridProvider = preferences.getString(PREF_DEBRID_KEY, null)
val debridProvider = preferences.getString(PREF_DEBRID_KEY, "none")

val animeTrackers = """http://nyaa.tracker.wf:7777/announce,
http://anidex.moe:6969/announce,http://tracker.anirena.com:80/announce,
Expand Down

0 comments on commit c9629f7

Please sign in to comment.