torrentscsv: dont use magnet link as details link. resolves #5539

details or comments link are not available in the results, and returning a magnet instead of a details link is contra to user expectations.

so we just point to the web site instead.

also added a download link to conform to torznab specs.
This commit is contained in:
Garfield69 2019-06-24 11:01:57 +12:00
parent 2df53768ae
commit 70491dfe57
1 changed files with 3 additions and 1 deletions

View File

@ -129,8 +129,10 @@ namespace Jackett.Common.Indexers {
"&tr=udp://tracker.justseed.it:1337/announce"; "&tr=udp://tracker.justseed.it:1337/announce";
release.MagnetUri = new Uri (magnet_uri); release.MagnetUri = new Uri (magnet_uri);
release.Comments = release.MagnetUri; // there is no comments or details link so we point to the web site instead
release.Comments = new Uri (SiteLink);
release.Guid = release.MagnetUri; release.Guid = release.MagnetUri;
release.Link = release.MagnetUri;
release.InfoHash = torrent.Value<JToken> ("infohash").ToString (); release.InfoHash = torrent.Value<JToken> ("infohash").ToString ();
// convert unix timestamp to human readable date // convert unix timestamp to human readable date