From 1d0269e2112d82f15e178707afff484dc8c2898e Mon Sep 17 00:00:00 2001 From: nitin Date: Sun, 15 Dec 2024 21:18:46 +0530 Subject: [PATCH] Fixed Torrentio --- src/all/torrentio/build.gradle | 2 +- .../kanade/tachiyomi/animeextension/all/torrentio/Torrentio.kt | 2 +- src/all/torrentioanime/build.gradle | 2 +- .../tachiyomi/animeextension/all/torrentioanime/Torrentio.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/all/torrentio/build.gradle b/src/all/torrentio/build.gradle index babff73..ad8588d 100644 --- a/src/all/torrentio/build.gradle +++ b/src/all/torrentio/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Torrentio (Torrent / Debrid)' extClass = '.Torrentio' - extVersionCode = 2 + extVersionCode = 3 containsNsfw = false } diff --git a/src/all/torrentio/src/eu/kanade/tachiyomi/animeextension/all/torrentio/Torrentio.kt b/src/all/torrentio/src/eu/kanade/tachiyomi/animeextension/all/torrentio/Torrentio.kt index 3389b5c..c38f228 100644 --- a/src/all/torrentio/src/eu/kanade/tachiyomi/animeextension/all/torrentio/Torrentio.kt +++ b/src/all/torrentio/src/eu/kanade/tachiyomi/animeextension/all/torrentio/Torrentio.kt @@ -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 ?: "" diff --git a/src/all/torrentioanime/build.gradle b/src/all/torrentioanime/build.gradle index c7de4b4..05d1795 100644 --- a/src/all/torrentioanime/build.gradle +++ b/src/all/torrentioanime/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Torrentio Anime (Torrent / Debrid)' extClass = '.Torrentio' - extVersionCode = 8 + extVersionCode = 9 containsNsfw = false } diff --git a/src/all/torrentioanime/src/eu/kanade/tachiyomi/animeextension/all/torrentioanime/Torrentio.kt b/src/all/torrentioanime/src/eu/kanade/tachiyomi/animeextension/all/torrentioanime/Torrentio.kt index 0bd2414..2f412c2 100644 --- a/src/all/torrentioanime/src/eu/kanade/tachiyomi/animeextension/all/torrentioanime/Torrentio.kt +++ b/src/all/torrentioanime/src/eu/kanade/tachiyomi/animeextension/all/torrentioanime/Torrentio.kt @@ -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 ?: ""