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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -241,7 +241,9 @@ namespace Jackett.Common.Indexers
if (xthorResponse.torrents != null)
{
// 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
if (!string.IsNullOrEmpty(ReplaceMulti))