New: Support Krypton Kodi Unique Ids (#3388)

pull/3442/head
Qstick 6 years ago committed by Leonardo Galli
parent cafb1a5a45
commit 80304d8804

@ -134,6 +134,19 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
details.Add(new XElement("plot", movie.Overview));
details.Add(new XElement("id", movie.ImdbId));
if (movie.ImdbId.IsNotNullOrWhiteSpace())
{
var imdbId = new XElement("uniqueid", movie.ImdbId);
imdbId.SetAttributeValue("type", "imdb");
imdbId.SetAttributeValue("default", true);
details.Add(imdbId);
}
var uniqueId = new XElement("uniqueid", movie.TmdbId);
uniqueId.SetAttributeValue("type", "tmdb");
details.Add(uniqueId);
details.Add(new XElement("year", movie.Year));
if (movie.InCinemas.HasValue)

Loading…
Cancel
Save