mirror of https://github.com/lidarr/Lidarr
Fixed: XBMC Metadata errors when no episode image was available
This commit is contained in:
parent
365898df45
commit
e0975b9004
|
@ -303,7 +303,7 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
|
||||||
if (screenshot == null)
|
if (screenshot == null)
|
||||||
{
|
{
|
||||||
_logger.Debug("Episode screenshot not available");
|
_logger.Debug("Episode screenshot not available");
|
||||||
return null;
|
return new List<ImageFileResult>();
|
||||||
}
|
}
|
||||||
|
|
||||||
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());
|
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);
|
yield return new ImageFileResult(Path.Combine(series.Path, filename), image.Url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue