mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-27 02:43:57 +02:00
New: Add TVMaze and TMDB IDs to Kodi .nfo (#7011)
Closes #6895 ignore-downstream
This commit is contained in:
parent
5ac6c0e651
commit
33b62a2def
@ -176,6 +176,20 @@ public override MetadataFileResult SeriesMetadata(Series series)
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user