Modify FileList parse selectors (#1088)

merged, thank you
This commit is contained in:
Mihai Blaga 2017-02-21 10:23:14 +02:00 committed by kaso17
parent b8146f623f
commit cb9dc4cbe2
1 changed files with 19 additions and 19 deletions

View File

@ -104,21 +104,21 @@ namespace Jackett.Indexers
cat = cats[0];
}
var queryCollection = new NameValueCollection();
if (query.ImdbID != null)
{
queryCollection.Add("search", query.ImdbID);
}
else if (!string.IsNullOrWhiteSpace(searchString))
{
queryCollection.Add("search", searchString);
}
queryCollection.Add("cat", cat);
queryCollection.Add("searchin", "0");
queryCollection.Add("sort", "0");
var queryCollection = new NameValueCollection();
if (query.ImdbID != null)
{
queryCollection.Add("search", query.ImdbID);
}
else if (!string.IsNullOrWhiteSpace(searchString))
{
queryCollection.Add("search", searchString);
}
queryCollection.Add("cat", cat);
queryCollection.Add("searchin", "0");
queryCollection.Add("sort", "0");
searchUrl += "?" + queryCollection.GetQueryString();
var response = await RequestStringWithCookiesAndRetry(searchUrl, null, BrowseUrl);
@ -133,7 +133,7 @@ namespace Jackett.Indexers
var release = new ReleaseInfo();
var qRow = row.Cq();
var qTitleLink = qRow.Find(".torrenttable:eq(1) a").First();
release.Title = qRow.Find(".torrenttable:eq(1) a").Attr("title");
release.Title = qRow.Find(".torrenttable:eq(1) b").Text();
if (query.ImdbID == null && !query.MatchQueryStringAND(release.Title))
continue;
@ -164,9 +164,9 @@ namespace Jackett.Indexers
if (globalFreeLeech || row.Cq().Find("img[alt=\"FreeLeech\"]").Any())
release.DownloadVolumeFactor = 0;
else
release.DownloadVolumeFactor = 1;
else
release.DownloadVolumeFactor = 1;
release.UploadVolumeFactor = 1;
// Skip Romanian releases