mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Write the correct album/releasegroup ids for XBMC/Emby
This commit is contained in:
parent
d10469d129
commit
49b89f1f41
1 changed files with 5 additions and 1 deletions
|
@ -141,6 +141,8 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
|
|||
return null;
|
||||
}
|
||||
|
||||
var albumRelease = album.AlbumReleases.Value.Single(x => x.Monitored);
|
||||
|
||||
_logger.Debug("Generating album.nfo for: {0}", album.Title);
|
||||
var sb = new StringBuilder();
|
||||
var xws = new XmlWriterSettings();
|
||||
|
@ -158,9 +160,11 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
|
|||
albumElement.Add(new XElement("rating", album.Ratings.Value));
|
||||
}
|
||||
|
||||
albumElement.Add(new XElement("musicbrainzalbumid", album.ForeignAlbumId));
|
||||
albumElement.Add(new XElement("musicbrainzreleasegroupid", album.ForeignAlbumId));
|
||||
albumElement.Add(new XElement("musicbrainzalbumid", albumRelease.ForeignReleaseId));
|
||||
albumElement.Add(new XElement("artistdesc", artist.Metadata.Value.Overview));
|
||||
albumElement.Add(new XElement("releasedate", album.ReleaseDate.Value.ToShortDateString()));
|
||||
albumElement.Add(new XElement("label", albumRelease.Label));
|
||||
|
||||
var doc = new XDocument(albumElement);
|
||||
doc.Save(xw);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue