Permalink
Browse files

Trunk

* FilmTrailer plugin; Tweaked poster locating code to look specifically for posters (thanks D.W. Issue84)

git-svn-id: https://videobrowser.googlecode.com/svn/trunk@1151 096cc86f-8a4c-0410-9b85-8b5e0eee1c45
  • Loading branch information...
1 parent 6f2b8b6 commit d653d47cad87c53eb8ccdc46b8fada6e4a4e17c5 jmanghera committed May 28, 2009
Showing with 10 additions and 1 deletion.
  1. +10 −1 FilmTrailerPlugin/FilmTrailerFolder.cs
@@ -176,7 +176,16 @@ private List<BaseItem> ParseDocument(XmlDocument xDoc)
currentTrailer.DateCreated = DateTime.Parse(node.SelectSingleNode("./region/products/product/pub_date").InnerText);
currentTrailer.DateModified = currentTrailer.DateCreated;
- currentTrailer.PrimaryImagePath = node.SelectSingleNode("./region/pictures/picture/url").InnerText;
+ //currentTrailer.PrimaryImagePath = node.SelectSingleNode("./region/pictures/picture/url").InnerText;
+ var pictures = node.SelectNodes("./region/pictures/picture");
+ foreach (XmlNode pnode in pictures)
+ {
+ if (pnode.Attributes["type_name"].Value == "poster")
+ {
+ currentTrailer.PrimaryImagePath = pnode.SelectSingleNode("./url").InnerText;
+ }
+ }
+
var genres = node.SelectNodes("./region/categories/categorie");
if (currentTrailer.Genres == null)

0 comments on commit d653d47

Please sign in to comment.