Skip to content

Commit

Permalink
Fix issue with missing epsiode being reported as a failed connection …
Browse files Browse the repository at this point in the history
…to TVDB
  • Loading branch information
SirSparkles committed Jul 26, 2023
1 parent 7765dab commit 78a0322
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TVRename/Sources/TheTVDB/LocalCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
Expand Down Expand Up @@ -182,6 +183,10 @@ private bool DownloadEpisodeNow(ISeriesSpecifier series, int episodeId, Locale l
catch (SourceConnectivityException e)
{
cachedSeriesInfo.Dirty = true;
if (e.InnerException is HttpRequestException hre && hre.Is404())
{
return false;
}
HandleConnectionIssue(showConnectionIssues, e);
return false;
}
Expand Down

0 comments on commit 78a0322

Please sign in to comment.