1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-01 09:25:50 +00:00

scenehd: andmatch (#8620)

This commit is contained in:
Diego Heras 2020-05-13 00:57:56 +02:00 committed by GitHub
parent d0ef9dbe07
commit 85b34ffe1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,6 +101,10 @@ namespace Jackett.Common.Indexers
var jsonContent = JArray.Parse(response.Content); var jsonContent = JArray.Parse(response.Content);
foreach (var item in jsonContent) foreach (var item in jsonContent)
{ {
var title = item.Value<string>("name");
if (!query.IsImdbQuery && !query.MatchQueryStringAND(title))
continue;
var id = item.Value<long>("id"); var id = item.Value<long>("id");
var comments = new Uri(CommentsUrl + "id=" + id); var comments = new Uri(CommentsUrl + "id=" + id);
var link = new Uri(DownloadUrl + "id=" + id + "&passkey=" + passkey); var link = new Uri(DownloadUrl + "id=" + id + "&passkey=" + passkey);
@ -109,7 +113,7 @@ namespace Jackett.Common.Indexers
var release = new ReleaseInfo var release = new ReleaseInfo
{ {
Title = item.Value<string>("name"), Title = title,
Link = link, Link = link,
Comments = comments, Comments = comments,
Guid = comments, Guid = comments,