Skip to content

Commit

Permalink
Fixed Torrentio
Browse files Browse the repository at this point in the history
  • Loading branch information
ni3x committed Dec 15, 2024
1 parent e99ebc4 commit 1d0269e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/all/torrentio/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Torrentio (Torrent / Debrid)'
extClass = '.Torrentio'
extVersionCode = 2
extVersionCode = 3
containsNsfw = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {

return streamList.streams?.map { stream ->
val urlOrHash =
if (debridProvider == "none" && stream.fileIdx != 0) {
if (debridProvider == "none") {
val trackerList = animeTrackers.split(",").map { it.trim() }.filter { it.isNotBlank() }.joinToString("&tr=")
"magnet:?xt=urn:btih:${stream.infoHash}&dn=${stream.infoHash}&tr=$trackerList&index=${stream.fileIdx}"
} else stream.url ?: ""
Expand Down
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 = 8
extVersionCode = 9
containsNsfw = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {

return streamList.streams?.map { stream ->
val urlOrHash =
if (debridProvider == "none" && stream.fileIdx != 0) {
if (debridProvider == "none") {
val trackerList = animeTrackers.split(",").map { it.trim() }.filter { it.isNotBlank() }.joinToString("&tr=")
"magnet:?xt=urn:btih:${stream.infoHash}&dn=${stream.infoHash}&tr=$trackerList&index=${stream.fileIdx}"
} else stream.url ?: ""
Expand Down

0 comments on commit 1d0269e

Please sign in to comment.