Don't try to update XEM mapping if there isn't one

Updated TVDBLib to prevent an issue with Banner Colours blowing
everything up.
This commit is contained in:
Mark McDowall 2012-11-14 12:31:44 -08:00
parent 363ece3939
commit 1d860cbc1c
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -55,6 +55,14 @@ namespace NzbDrone.Core.Providers
public virtual void UpdateMappings(int seriesId)
{
var xemIds = _xemCommunicationProvider.GetXemSeriesIds();
if (!xemIds.Contains(seriesId))
{
_logger.Trace("Xem doesn't have a mapping for this series: {0}", seriesId);
return;
}
var series = _seriesProvider.GetSeries(seriesId);
if (series == null)