Personal Video Database

English => Development => Topic started by: oska85 on September 30, 2008, 09:22:27 am

Title: Export Actors and there roles
Post by: oska85 on September 30, 2008, 09:22:27 am
just quickly, excellent program dudes, has mass potential

My question is I'm editing the template for movie xml and i'm trying to include the roles for each actor as follows

<actor>
<role>

I've played around with the coding for some time now and I just can't get it. Can anybody help me with providing me some examples so I can just learn from them.
Thanks
Title: Re: Export Actors and there roles
Post by: nostra on September 30, 2008, 12:38:21 pm
You have to create an extra .tpl file for actors and write smth like this in the main template file:
Code: [Select]
{%value=52 template="actors.tpl" param="full"}
In the actors.tpl you write:
Code: [Select]
%HEAD%<actor>%HEAD%
<name>{%param=name}</name>
<role>{%param=role}</role>
%FOOT%</actor>%FOOT%
Title: Re: Export Actors and there roles
Post by: oska85 on October 01, 2008, 09:45:58 am
Thanks nostra,

that helped perfectly.

Kind Regards
Oska85
 :)
Title: Re: Export Actors and there roles
Post by: rick.ca on October 05, 2008, 12:39:48 am
Your question seems to involve what would be required to export XML for import to XBMC (http://www.xbmc.org/wiki/?title=Import_-_Export_Library#Movies) (i.e., the actor/role format). It might be helpful if you could post what you've done to XBMC integration? (http://www.videodb.info/forum_en/index.php?topic=1022.0)
Title: To Rick.ca in regards into XBMC
Post by: oska85 on October 09, 2008, 01:06:32 pm
No problem rick.ca

I'll post a reply with all my workings in that particular form very soon.
All my work is based upon xbmc for xbox.

will it be a problem to post that kind of information and workings being its for the xbmc xbox version?

Kind Regards
oska85
Title: Re: Export Actors and there roles
Post by: nostra on October 09, 2008, 03:25:21 pm
No matter for which version it is, just post ;)

Everything that can help other users is appreciated.
Title: Re: Export Actors and there roles
Post by: rick.ca on October 09, 2008, 07:18:25 pm
Quote
Everything that can help other users is appreciated.

To illustrate the point... Until a recent post, I assumed XBMC was Microsoft software for the XBox. I now know it's open source with versions for Windows, Mac, Linux and XBox. While XBMC is very impressive, I'm still going to prefer J River Media Center. But JRMC also requires the XML for importing information. So whatever ideas you have are likely of interest to me.

On a more general note, there are a number of excellent media centers out there. And it's obvious they are becoming more "mainstream." XBMC is one of few that download movie information, and I don't think any of them will ever come close to doing that as well as PVD. But if PVD is going to be relevant in a world where everyone is using media center software, it has to establish itself as an effective "back end" for movie information. For now, helping media center users import information by whatever means their software allows is the best we can do. Eventually, maybe media center developers will take note, and add the ability to query PVD's SQL database directly.