|
From: <du...@us...> - 2007-04-02 17:08:48
|
Revision: 280
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=280&view=rev
Author: dukus
Date: 2007-04-02 10:08:47 -0700 (Mon, 02 Apr 2007)
Log Message:
-----------
Compatibility with latest DVDP
Modified Paths:
--------------
trunk/plugins/MyFilms/CatalogConverter.cs
Modified: trunk/plugins/MyFilms/CatalogConverter.cs
===================================================================
--- trunk/plugins/MyFilms/CatalogConverter.cs 2007-04-02 15:49:16 UTC (rev 279)
+++ trunk/plugins/MyFilms/CatalogConverter.cs 2007-04-02 17:08:47 UTC (rev 280)
@@ -152,9 +152,20 @@
}
}
string Image = folderimage + @"\" + nodeID.InnerText.Trim() + "f.jpg";
- XmlNode nodeRating = nodeDVD.SelectSingleNode("Review/ReviewFilm");
- if (nodeRating != null && nodeRating.InnerText != null)
- Rating = nodeRating.InnerText + ".0";
+ if (nodeMediaType != null)
+ {
+ XmlNode nodeRating = nodeDVD.SelectSingleNode("Review");
+ if (nodeRating != null && nodeRating.Attributes["Film"] != null && nodeRating.Attributes["Film"].Value != null)
+ Rating = nodeRating.Attributes["Film"].Value + ".0";
+ else Rating = "0.0";
+ }
+ else
+ {
+ XmlNode nodeRating = nodeDVD.SelectSingleNode("Review/ReviewFilm");
+ if (nodeRating != null && nodeRating.InnerText != null)
+ Rating = nodeRating.InnerText + ".0";
+ else Rating="0.0";
+ }
if (nodeNumber != null && nodeNumber.InnerText != null)
WriteAntAtribute(destXml,"CollectionNumber",nodeNumber.InnerText);
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|