added audio db id's to xml

This commit is contained in:
Luke Pulverenti 2014-02-09 16:13:17 -05:00
parent a29cd06883
commit eaf1d39089
2 changed files with 16 additions and 0 deletions

View File

@ -737,6 +737,15 @@ namespace MediaBrowser.Controller.Providers
} }
break; break;
} }
case "AudioDbAlbumId":
{
var id = reader.ReadElementContentAsString();
if (!string.IsNullOrWhiteSpace(id))
{
item.SetProviderId(MetadataProviders.AudioDbAlbum, id);
}
break;
}
case "RottenTomatoesId": case "RottenTomatoesId":
var rtId = reader.ReadElementContentAsString(); var rtId = reader.ReadElementContentAsString();
if (!string.IsNullOrWhiteSpace(rtId)) if (!string.IsNullOrWhiteSpace(rtId))

View File

@ -466,6 +466,13 @@ namespace MediaBrowser.Providers.Savers
builder.Append("<AudioDbArtistId>" + SecurityElement.Escape(externalId) + "</AudioDbArtistId>"); builder.Append("<AudioDbArtistId>" + SecurityElement.Escape(externalId) + "</AudioDbArtistId>");
} }
externalId = item.GetProviderId(MetadataProviders.AudioDbAlbum);
if (!string.IsNullOrEmpty(externalId))
{
builder.Append("<AudioDbAlbumId>" + SecurityElement.Escape(externalId) + "</AudioDbAlbumId>");
}
externalId = item.GetProviderId(MetadataProviders.TvRage); externalId = item.GetProviderId(MetadataProviders.TvRage);
if (!string.IsNullOrEmpty(externalId)) if (!string.IsNullOrEmpty(externalId))