Author Topic: New Plugin: Awards recipients  (Read 8970 times)

0 Members and 1 Guest are viewing this topic.

Offline sultan

  • Member
  • *
  • Posts: 11
    • View Profile
New Plugin: Awards recipients
« 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

Offline sultan

  • Member
  • *
  • Posts: 11
    • View Profile
Re: New Plugin: Awards recipients
« Reply #1 on: June 12, 2011, 05:54:23 pm »
Is nobody on this forum, who developed an import plugin for PVD and knows the expected xml-structure for the Awards section?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: New Plugin: Awards recipients
« Reply #2 on: June 15, 2011, 01:24:42 pm »
It might be useful upload complete import plugin, then maybe someone could help solve the problem.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline sultan

  • Member
  • *
  • Posts: 11
    • View Profile
Re: New Plugin: Awards recipients
« Reply #3 on: June 15, 2011, 01:48:53 pm »
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. :-(

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: New Plugin: Awards recipients
« Reply #4 on: June 15, 2011, 03:39:23 pm »
Quote
It seems, tha only nostra could help, but he is away. :-(

Will have to wait on him.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: New Plugin: Awards recipients
« Reply #5 on: June 23, 2011, 12:50:01 pm »
Here is the needed structure:
Code: [Select]
<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>
Gentlemen, you can’t fight in here! This is the War Room!

Offline sultan

  • Member
  • *
  • Posts: 11
    • View Profile
Re: New Plugin: Awards recipients
« Reply #6 on: September 12, 2011, 08:35:24 pm »
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!

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: New Plugin: Awards recipients
« Reply #7 on: September 12, 2011, 11:40:51 pm »
Quote
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.

Quote
A second question: is it possible to store URLs to the persons in the awards section (like in the actors section)?

No
Gentlemen, you can’t fight in here! This is the War Room!

Offline sultan

  • Member
  • *
  • Posts: 11
    • View Profile
Re: New Plugin: Awards recipients
« Reply #8 on: September 14, 2011, 07:12:05 am »
Thanks again, that worked.