mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 06:03:09 +00:00
anidub: handle mysql error #5399
This commit is contained in:
parent
f643e4a733
commit
9f469f45ea
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ namespace Jackett.Common.Indexers
|
|||
{
|
||||
const string ReleaseLinksSelector = "#dle-content > .story > .story_h > .lcol > h2 > a";
|
||||
var result = await RequestWithCookiesAndRetryAsync(SiteLink);
|
||||
if (result.ContentString.Contains("Fatal error: Uncaught exception"))
|
||||
if (result.ContentString.Contains("Fatal error: Uncaught exception") || result.ContentString.Contains("MySQL Error!"))
|
||||
{
|
||||
logger.Error("[AniDUB]" + result.ContentString);
|
||||
throw new Exception("There is a problem at the AniDUB WEB site, view the Jackett logs for more details.");
|
||||
|
@ -555,7 +555,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
var releases = new List<ReleaseInfo>();
|
||||
var response = await RequestWithCookiesAndRetryAsync(SearchUrl, method: RequestType.POST, data: PreparePostData(query));
|
||||
if (response.ContentString.Contains("Fatal error: Uncaught exception"))
|
||||
if (response.ContentString.Contains("Fatal error: Uncaught exception") || response.ContentString.Contains("MySQL Error!"))
|
||||
{
|
||||
logger.Error("[AniDUB]" + response.ContentString);
|
||||
throw new Exception("There is a problem at the AniDUB WEB site, view the Jackett logs for more details.");
|
||||
|
|
Loading…
Add table
Reference in a new issue