Skip to content

Commit

Permalink
anidub: handle mysql error #5399
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Apr 28, 2024
1 parent f643e4a commit 9f469f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Jackett.Common/Indexers/AniDUB.cs
Expand Up @@ -181,7 +181,7 @@ private async Task<List<ReleaseInfo>> FetchNewReleases()
{
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.");
Expand Down Expand Up @@ -555,7 +555,7 @@ private async Task<IEnumerable<ReleaseInfo>> PerformSearch(TorznabQuery query)

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.");
Expand Down

0 comments on commit 9f469f4

Please sign in to comment.