mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
parent
63ea1f1afd
commit
3d7c59bc3b
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -163,6 +163,18 @@ public override MetadataFileResult SeriesMetadata(Series series)
|
|||||||
tvShow.Add(new XElement("mpaa", series.Certification));
|
tvShow.Add(new XElement("mpaa", series.Certification));
|
||||||
tvShow.Add(new XElement("id", series.TvdbId));
|
tvShow.Add(new XElement("id", series.TvdbId));
|
||||||
|
|
||||||
|
var uniqueId = new XElement("uniqueid", series.TvdbId);
|
||||||
|
uniqueId.SetAttributeValue("type", "tvdb");
|
||||||
|
uniqueId.SetAttributeValue("default", true);
|
||||||
|
tvShow.Add(uniqueId);
|
||||||
|
|
||||||
|
if (series.ImdbId.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
var imdbId = new XElement("uniqueid", series.ImdbId);
|
||||||
|
imdbId.SetAttributeValue("type", "imdb");
|
||||||
|
tvShow.Add(imdbId);
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var genre in series.Genres)
|
foreach (var genre in series.Genres)
|
||||||
{
|
{
|
||||||
tvShow.Add(new XElement("genre", genre));
|
tvShow.Add(new XElement("genre", genre));
|
||||||
|
Loading…
Reference in New Issue
Block a user