Update BaseNfoParser to handle user defined IExternalIds

This commit is contained in:
Darrell King 2017-01-13 20:51:07 +00:00
parent 4104bc4716
commit 27070bd43a

View File

@ -964,7 +964,19 @@ namespace MediaBrowser.XbmcMetadata.Parsers
}
default:
reader.Skip();
var providerId = reader.Name;
if (_validProviderIds.ContainsKey(providerId))
{
var id = reader.ReadElementContentAsString();
if (!string.IsNullOrWhiteSpace(id))
{
item.SetProviderId(_validProviderIds[providerId], id);
}
}
else
{
reader.Skip();
}
break;
}
}