mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix torrentless magnet links failing on the torrentpotato endpoint #157
This commit is contained in:
@@ -128,6 +128,9 @@ namespace Jackett.Controllers
|
|||||||
var release = Mapper.Map<ReleaseInfo>(r);
|
var release = Mapper.Map<ReleaseInfo>(r);
|
||||||
release.Link = serverService.ConvertToProxyLink(release.Link, serverUrl, indexerID);
|
release.Link = serverService.ConvertToProxyLink(release.Link, serverUrl, indexerID);
|
||||||
|
|
||||||
|
// Only accept torrent links, magnet is not supported
|
||||||
|
if (release.Link != null)
|
||||||
|
{
|
||||||
potatoResponse.results.Add(new TorrentPotatoResponseItem()
|
potatoResponse.results.Add(new TorrentPotatoResponseItem()
|
||||||
{
|
{
|
||||||
release_name = release.Title + "[" + indexer.DisplayName + "]", // Suffix the indexer so we can see which tracker we are using in CPS as it just says torrentpotato >.>
|
release_name = release.Title + "[" + indexer.DisplayName + "]", // Suffix the indexer so we can see which tracker we are using in CPS as it just says torrentpotato >.>
|
||||||
@@ -142,6 +145,7 @@ namespace Jackett.Controllers
|
|||||||
seeders = (int)release.Seeders
|
seeders = (int)release.Seeders
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Log info
|
// Log info
|
||||||
if (string.IsNullOrWhiteSpace(torznabQuery.SanitizedSearchTerm))
|
if (string.IsNullOrWhiteSpace(torznabQuery.SanitizedSearchTerm))
|
||||||
|
Reference in New Issue
Block a user