mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed: Set episode guide url for XBMC metadata
This commit is contained in:
parent
836c39a47d
commit
f40a5eb9e9
@ -247,6 +247,8 @@ private MetadataFile WriteTvShowNfo(Series series, List<MetadataFile> existingMe
|
||||
xws.OmitXmlDeclaration = true;
|
||||
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))
|
||||
{
|
||||
var tvShow = new XElement("tvshow");
|
||||
@ -254,10 +256,8 @@ private MetadataFile WriteTvShowNfo(Series series, List<MetadataFile> existingMe
|
||||
tvShow.Add(new XElement("title", series.Title));
|
||||
tvShow.Add(new XElement("rating", (decimal)series.Ratings.Percentage/10));
|
||||
tvShow.Add(new XElement("plot", series.Overview));
|
||||
|
||||
//Todo: probably will need to use TVDB to use this feature...
|
||||
// tvShow.Add(new XElement("episodeguide", new XElement("url", episodeGuideUrl)));
|
||||
// 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("id", series.TvdbId));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user