New: Add TVMaze and TMDB IDs to Kodi .nfo (#7011)

Closes #6895
ignore-downstream
This commit is contained in:
Bogdan 2024-07-29 02:59:10 +03:00 committed by GitHub
parent 5ac6c0e651
commit 33b62a2def
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -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));