mirror of
https://github.com/Radarr/Radarr
synced 2024-12-29 11:25:26 +00:00
More logging when episode file image can't be found for XBMC metadata
This commit is contained in:
parent
33f44e7932
commit
b2526a136c
1 changed files with 16 additions and 7 deletions
|
@ -296,6 +296,8 @@ public override List<ImageFileResult> EpisodeImages(Series series, EpisodeFile e
|
|||
return new List<ImageFileResult>();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var screenshot = episodeFile.Episodes.Value.First().Images.SingleOrDefault(i => i.CoverType == MediaCoverTypes.Screenshot);
|
||||
|
||||
if (screenshot == null)
|
||||
|
@ -309,6 +311,13 @@ public override List<ImageFileResult> EpisodeImages(Series series, EpisodeFile e
|
|||
new ImageFileResult(GetEpisodeImageFilename(episodeFile.RelativePath), screenshot.Url)
|
||||
};
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error("Unable to episode image for file: " + Path.Combine(series.Path, episodeFile.RelativePath), ex);
|
||||
|
||||
return new List<ImageFileResult>();
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerable<ImageFileResult> ProcessSeriesImages(Series series)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue