TVChaosUK: test RSS and scrape search

This commit is contained in:
kaso17 2016-12-17 13:39:52 +01:00
parent 7db50dba49
commit a8ddf21081
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ namespace Jackett.Indexers
var searchString = query.GetQueryString(); var searchString = query.GetQueryString();
// If we have no query use the RSS Page as their server is slow enough at times! // If we have no query use the RSS Page as their server is slow enough at times!
if (string.IsNullOrWhiteSpace(searchString)) if (query.IsTest || string.IsNullOrWhiteSpace(searchString))
{ {
var rssPage = await RequestStringWithCookiesAndRetry(string.Format(RSSUrl, configData.RSSKey.Value)); var rssPage = await RequestStringWithCookiesAndRetry(string.Format(RSSUrl, configData.RSSKey.Value));
var rssDoc = XDocument.Parse(rssPage.Content); var rssDoc = XDocument.Parse(rssPage.Content);
@ -195,7 +195,7 @@ namespace Jackett.Indexers
releases.Add(release); releases.Add(release);
} }
} }
else if (query.IsTest || !string.IsNullOrWhiteSpace(searchString))
{ {
// The TVChaos UK search requires an exact match of the search string. // The TVChaos UK search requires an exact match of the search string.
// But it seems like they just send the unfiltered search to the SQL server in a like query (LIKE '%$searchstring%'). // But it seems like they just send the unfiltered search to the SQL server in a like query (LIKE '%$searchstring%').