diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-03 00:15:16 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-03 00:15:16 -0500 |
| commit | 4c08d26ad43de931223cf349729d7cf57e22bbc1 (patch) | |
| tree | 72dd145184c4450df923053cd9e0077724217edb | |
| parent | c0ddeaab774c7280514556a01f983eef2cc49e0f (diff) | |
reduce error logging
| -rw-r--r-- | MediaBrowser.Providers/TV/MissingEpisodeProvider.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs b/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs index 22e7e753c..1fd04070b 100644 --- a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs +++ b/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs @@ -93,6 +93,12 @@ namespace MediaBrowser.Providers.TV return; } + // Check this in order to avoid logging an exception due to directory not existing + if (!_fileSystem.DirectoryExists(seriesDataPath)) + { + return; + } + var episodeFiles = _fileSystem.GetFilePaths(seriesDataPath) .Where(i => string.Equals(Path.GetExtension(i), ".xml", StringComparison.OrdinalIgnoreCase)) .Select(Path.GetFileNameWithoutExtension) |
