From 33b62a2def7321313018e49e3fc8ed08b3234786 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 29 Jul 2024 02:59:10 +0300 Subject: [PATCH] New: Add TVMaze and TMDB IDs to Kodi .nfo (#7011) Closes #6895 ignore-downstream --- .../Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs index 249a9cbd3..a65168bdf 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs @@ -176,6 +176,20 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc tvShow.Add(imdbId); } + if (series.TmdbId > 0) + { + var tmdbId = new XElement("uniqueid", series.TmdbId); + tmdbId.SetAttributeValue("type", "tmdb"); + tvShow.Add(tmdbId); + } + + if (series.TvMazeId > 0) + { + var tvMazeId = new XElement("uniqueid", series.TvMazeId); + tvMazeId.SetAttributeValue("type", "tvmaze"); + tvShow.Add(tvMazeId); + } + foreach (var genre in series.Genres) { tvShow.Add(new XElement("genre", genre));