From 1b9c47da38b0f80fcdbdd52c87414e1d9a3b26b3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 15 Jul 2012 22:56:07 -0700 Subject: [PATCH] Cleaned up metadata output a bit --- NzbDrone.Core/Providers/Metadata/Xbmc.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/Providers/Metadata/Xbmc.cs b/NzbDrone.Core/Providers/Metadata/Xbmc.cs index 5bad7f659..a17f7cc2a 100644 --- a/NzbDrone.Core/Providers/Metadata/Xbmc.cs +++ b/NzbDrone.Core/Providers/Metadata/Xbmc.cs @@ -40,13 +40,16 @@ namespace NzbDrone.Core.Providers.Metadata using (var xw = XmlWriter.Create(sb, xws)) { var tvShow = new XElement("tvshow"); + + tvShow.Add(new XElement("title", tvDbSeries.SeriesName)); tvShow.Add(new XElement("rating", tvDbSeries.Rating)); tvShow.Add(new XElement("plot", tvDbSeries.Overview)); tvShow.Add(new XElement("episodeguide", new XElement("url", episodeGuideUrl))); tvShow.Add(new XElement("episodeguideurl", episodeGuideUrl)); tvShow.Add(new XElement("mpaa", tvDbSeries.ContentRating)); - tvShow.Add(new XElement("genre", tvDbSeries.GenreString)); + tvShow.Add(new XElement("id", tvDbSeries.Id)); + tvShow.Add(new XElement("genre", tvDbSeries.Genre.FirstOrDefault())); tvShow.Add(new XElement("premiered", tvDbSeries.FirstAired.ToString("yyyy-MM-dd"))); tvShow.Add(new XElement("studio", tvDbSeries.Network)); @@ -55,7 +58,7 @@ namespace NzbDrone.Core.Providers.Metadata tvShow.Add(new XElement("actor", new XElement("name", actor.Name), new XElement("role", actor.Role), - new XElement("thumb", actor.ActorImage.BannerPath) + new XElement("thumb", "http://www.thetvdb.com/banners/" + actor.ActorImage.BannerPath) )); } @@ -184,7 +187,7 @@ namespace NzbDrone.Core.Providers.Metadata details.Add(new XElement("actor", new XElement("name", actor.Name), new XElement("role", actor.Role), - new XElement("thumb", actor.ActorImage.BannerPath) + new XElement("thumb", "http://www.thetvdb.com/banners/" + actor.ActorImage.BannerPath) )); }