Skip to content

Commit

Permalink
Fixed: (TPB) No Results returned for Torznab searches
Browse files Browse the repository at this point in the history
Fixed: (TPB) Missing Magnet Download Link
  • Loading branch information
bakerboy448 authored and Qstick committed Aug 30, 2021
1 parent 658724b commit 16834e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NzbDrone.Core/Indexers/Definitions/ThePirateBay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
ImdbId = imdbId.GetValueOrDefault()
};

if (item.InfoHash != null)
{
torrentItem.MagnetUrl = MagnetLinkBuilder.BuildPublicMagnetLink(item.InfoHash, item.Name);
}

torrentInfos.Add(torrentItem);
}

Expand Down

0 comments on commit 16834e0

Please sign in to comment.