Fixed: XBMC Metadata errors when no episode image was available

This commit is contained in:
Mark McDowall 2014-11-21 07:35:40 -08:00
parent 365898df45
commit e0975b9004
1 changed files with 1 additions and 3 deletions

View File

@ -303,7 +303,7 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
if (screenshot == null)
{
_logger.Debug("Episode screenshot not available");
return null;
return new List<ImageFileResult>();
}
return new List<ImageFileResult>
@ -341,8 +341,6 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
filename = String.Format("season-specials-{0}.jpg", image.CoverType.ToString().ToLower());
}
var path = Path.Combine(series.Path, filename);
yield return new ImageFileResult(Path.Combine(series.Path, filename), image.Url);
}
}