Fixed: Set episode guide url for XBMC metadata

This commit is contained in:
Mark McDowall 2014-04-26 09:01:03 -07:00
parent 836c39a47d
commit f40a5eb9e9
1 changed files with 4 additions and 4 deletions

View File

@ -247,6 +247,8 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
xws.OmitXmlDeclaration = true; xws.OmitXmlDeclaration = true;
xws.Indent = false; xws.Indent = false;
var episodeGuideUrl = String.Format("http://www.thetvdb.com/api/1D62F2F90030C444/series/{0}/all/en.zip", series.TvdbId);
using (var xw = XmlWriter.Create(sb, xws)) using (var xw = XmlWriter.Create(sb, xws))
{ {
var tvShow = new XElement("tvshow"); var tvShow = new XElement("tvshow");
@ -254,10 +256,8 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
tvShow.Add(new XElement("title", series.Title)); tvShow.Add(new XElement("title", series.Title));
tvShow.Add(new XElement("rating", (decimal)series.Ratings.Percentage/10)); tvShow.Add(new XElement("rating", (decimal)series.Ratings.Percentage/10));
tvShow.Add(new XElement("plot", series.Overview)); tvShow.Add(new XElement("plot", series.Overview));
tvShow.Add(new XElement("episodeguide", new XElement("url", episodeGuideUrl)));
//Todo: probably will need to use TVDB to use this feature... tvShow.Add(new XElement("episodeguideurl", episodeGuideUrl));
// tvShow.Add(new XElement("episodeguide", new XElement("url", episodeGuideUrl)));
// tvShow.Add(new XElement("episodeguideurl", episodeGuideUrl));
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));