mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-16 07:06:18 +00:00
reduce error logging
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user