xthor: remove torrents from hidden category. resolves #10407 (#11408)

This commit is contained in:
Diego Heras
2021-03-24 21:46:33 +01:00
committed by GitHub
parent 6e6c7a4ae5
commit 8aef992535

View File

@@ -241,7 +241,9 @@ namespace Jackett.Common.Indexers
if (xthorResponse.torrents != null) if (xthorResponse.torrents != null)
{ {
// Adding each torrent row to releases // Adding each torrent row to releases
releases.AddRange(xthorResponse.torrents.Select(torrent => // Exclude hidden torrents (category 106, example => search 'yoda' in the API) #10407
releases.AddRange(xthorResponse.torrents
.Where(torrent => torrent.category != 106).Select(torrent =>
{ {
//issue #3847 replace multi keyword //issue #3847 replace multi keyword
if (!string.IsNullOrEmpty(ReplaceMulti)) if (!string.IsNullOrEmpty(ReplaceMulti))