Update BaseNfoParser to handle user defined IExternalIds
This commit is contained in:
parent
4104bc4716
commit
27070bd43a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user