Skip to content

Commit

Permalink
Will no longer throw null exception if show isn't found on addic7ed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrego committed Oct 1, 2017
1 parent 26a2b1b commit 815d95a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,4 @@ FakesAssemblies/
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
/.svn
5 changes: 5 additions & 0 deletions SubsDownloader/Processing/FileProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public void DownloadSubtitles(bool addToQueue = false)
{
if (!ValidFile)
return;
if (Episode.Show == null)
{
Logger.WriteLine($"No show was found on addic7ed with the name {Episode.ShowName}");
return;
}
var plugin = new Websites.Addic7ed.Plugin(new[] { Episode });
var downloadableSubtitles = plugin.GetDownloadLinks();
bool success;
Expand Down

0 comments on commit 815d95a

Please sign in to comment.