Personal Video Database
English => Development => Topic started by: sultan on May 22, 2011, 09:04:31 pm
-
Hi!
I am trying to write a new import plugin for this great piece of software called PVD. It works already quite well, but I have a little problem with the awards section. What is the expected XML-structure? (I did not find anything in the samples or the forum.) Here is my current implementation, which does not work (but only the recipients part, the rest is ok):
<awards>
<award>
<year>1980</year>
<event>Oscar</event>
<cat>a legjobb vizuális effektusok</cat>
<result>true</result>
<recipients>
<person>
<name>Carlo Rambaldi</name>
<url>http://www.filmkatalogus.hu/Carlo-Rambaldi--sz23280</url>
</person>
<person>
<name>Denys Ayling</name>
<url>http://www.filmkatalogus.hu/Denys-Ayling--sz23283</url>
</person>
</recipients>
</award>
<award>
<year>1980</year>
<event>Oscar</event>
<cat>a legjobb látványtervezés</cat>
<result>false</result>
<recipients>
<person>
<name>Michael Seymour</name>
<url>http://www.filmkatalogus.hu/Michael-Seymour--sz22008</url>
</person>
<person>
<name>Ian Whittaker</name>
<url>http://www.filmkatalogus.hu/Ian-Whittaker--sz22010</url>
</person>
</recipients>
</award>
<award>
<year>1980</year>
<event>Golden Globe</event>
<cat>a legjobb eredeti filmzene</cat>
<result>false</result>
<recipients>
<person>
<name>Jerry Goldsmith</name>
<url>http://www.filmkatalogus.hu/Jerry-Goldsmith--sz22274</url>
</person>
</recipients>
</award>
</awards>
I would really appreciate some help in this case.
Thanx,
sultan
-
Is nobody on this forum, who developed an import plugin for PVD and knows the expected xml-structure for the Awards section?
-
It might be useful upload complete import plugin, then maybe someone could help solve the problem.
-
My problem is, that I don't know, what XML structure PVD expects for awards. I know, that it is possible to set multiple fields (year, award type, won or not etc.). Almost everything works, but I can't add the persons behind the awards. So I would like to get some documentation on the XML structure, that PVD expects. I searched everywhere where I could, but didn't find anything on this subject.
It seems, tha only nostra could help, but he is away. :-(
-
It seems, tha only nostra could help, but he is away. :-(
Will have to wait on him.
-
Here is the needed structure:
<awards>
<awardentry>
<event></event> <!-- Event Name -->
<year>Year</year> <!-- Year -->
<result></result> <!-- 0 - Nominated, 1 - Won -->
<award></award> <!-- Award name -->
<cat></cat> <!-- Category name -->
<origtitle></origtitle> <!-- Movie Title (for people import plugins only) -->
<name></name> <!-- Person Name (for movie import plugins only) -->
</awardentry>
</awards>
-
Thank you, that worked. I only have one little issue regarding awards: what, if there are more names to a category (more persons share one award)? If this happens, my result is very strange. For the most entries, PVD shows only one person to the award, but sometimes (for the same movie), it shows all (the two in this case). So I get 9 awards and the fifth is ok but the others only show one name.
A second question: is it possible to store URLs to the persons in the awards section (like in the actors section)?
Thanks again for any help!
-
f this happens, my result is very strange. For the most entries, PVD shows only one person to the award, but sometimes (for the same movie), it shows all (the two in this case). So I get 9 awards and the fifth is ok but the others only show one name.
You need to add a separate award entry for each person.
A second question: is it possible to store URLs to the persons in the awards section (like in the actors section)?
No
-
Thanks again, that worked.