mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-01 07:53:41 +02:00
XSpeeds: dump feed in case of error (#742)
This commit is contained in:
@@ -172,7 +172,10 @@ namespace Jackett.Indexers
|
||||
// If we have no query use the RSS Page as their server is slow enough at times!
|
||||
if (string.IsNullOrWhiteSpace(searchString))
|
||||
{
|
||||
|
||||
var rssPage = await RequestStringWithCookiesAndRetry(string.Format(RSSUrl, configData.RSSKey.Value));
|
||||
try
|
||||
{
|
||||
if (rssPage.Content.EndsWith("\0")) {
|
||||
rssPage.Content = rssPage.Content.Substring(0, rssPage.Content.Length - 1);
|
||||
}
|
||||
@@ -214,6 +217,14 @@ namespace Jackett.Indexers
|
||||
releases.Add(release);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error("XSpeeds: Error while parsing the RSS feed:");
|
||||
logger.Error(rssPage.Content);
|
||||
throw ex;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (searchString.Length < 3)
|
||||
|
Reference in New Issue
Block a user