1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 04:38:20 +00:00

TorrentDay: fix invalid cast in results parser. Resolves #7875 (#7884)

This commit is contained in:
Cory 2020-03-27 15:23:10 -05:00 committed by GitHub
parent c30a8656f5
commit ff3f3b9765
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,8 @@ namespace Jackett.Common.Indexers
foreach (var torrent in json)
{
if ((!query.IsImdbQuery || !TorznabCaps.SupportsImdbMovieSearch) && !query.MatchQueryStringAND(torrent.name))
var title = (string)torrent.name;
if ((!query.IsImdbQuery || !TorznabCaps.SupportsImdbMovieSearch) && !query.MatchQueryStringAND(title))
continue;
var torrentID = (long)torrent.t;
var comments = new Uri(SiteLink + "details.php?id=" + torrentID);
@ -233,7 +234,7 @@ namespace Jackett.Common.Indexers
var imdb = ParseUtil.GetImdbID(imdbId);
var release = new ReleaseInfo
{
Title = torrent.name,
Title = title,
MinimumRatio = 1,
MinimumSeedTime = 172800, // 48 hours
Category = MapTrackerCatToNewznab(torrent.c.ToString()),