|
|
@ -296,18 +296,27 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
|
|
|
|
return new List<ImageFileResult>();
|
|
|
|
return new List<ImageFileResult>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var screenshot = episodeFile.Episodes.Value.First().Images.SingleOrDefault(i => i.CoverType == MediaCoverTypes.Screenshot);
|
|
|
|
try
|
|
|
|
|
|
|
|
|
|
|
|
if (screenshot == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.Debug("Episode screenshot not available");
|
|
|
|
var screenshot = episodeFile.Episodes.Value.First().Images.SingleOrDefault(i => i.CoverType == MediaCoverTypes.Screenshot);
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (screenshot == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.Debug("Episode screenshot not available");
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new List<ImageFileResult>
|
|
|
|
return new List<ImageFileResult>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new ImageFileResult(GetEpisodeImageFilename(episodeFile.RelativePath), screenshot.Url)
|
|
|
|
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)
|
|
|
|
private IEnumerable<ImageFileResult> ProcessSeriesImages(Series series)
|
|
|
|