English > Scripts and Templates
Export to XBMC
deazo:
OK thanks I guess I'll start this new project, I really would rather use PVD only than having to go through EMM.
For anyone reading and expecting me to be at it very quick, please bear with me, time is hard to find...
nostra:
You could also get in touch with CAD and oska85. They seem to be writing a template for XBMC as well...
rick.ca:
--- Quote ---You could also get in touch with CAD...
--- End quote ---
See "imagepath" statement as well. I forgot about these topics. After getting a lot of help here, it seems CAD forgot to post his finished template. :o ;)
I'm sure it would be very helpful to deazo. From the questions he asked, it seems the required template is not as straightforward as I assumed it might be.
CAD:
hi - sorry been away.
template is mostly finished i think. havn't worked on it for while so not sure where i am up to.
i was waiting for Nostra to do some fixes. (nearfile) so I can save images to same directory.
Need to pull apart what nostra has done now and try and figure out how it works ;).
Also need to figure out how to make credits work
see http://www.videodb.info/forum_en/index.php?topic=1481.0 if someone can help with this bit (may be fixed in new version??)
For peoples interest in how xbmc works and what im trying to do....
xbmc will scrape imdb, tv.com etc based on folder name (and/or file name??) (but definitely folder name)
If there is a .nfo file in the directory it will scrape that first.
if the .nfo has info required it will use that info.
it will also search .nfo for an imdb url and d/l missing info from that url.
So you can have a .nfo file full of crap with an imdb url and the scraper will find the url and d/l info based on that.
All this data is saved in a local sql database.
The problem (i have) with xbmc is that the scrapes are reeeaaally sloooow, the folder names need to be precise, saving/backing up database info is a bit of a pain. Not really an issue with pc based xbmc as you can use keyboard for data entry, but i'm using xbox to run xbmc
(Not really a big deal - but a matter of principle :) )...I don't want to have to maintain d/l the same data twice for different apps.
So what i am trying to achieve is:
Add movie into pvd, dl any required info from online sources. I can then export movie as a .nfo+image. These files can live in the movie directory. When xbmc does its library update. It will read the .nfo file first as a default and update its internal library with this info. (No need to do second d/l stuff from i/net).
The alternative is to have xbmc do the scrape from imdb and then import this info into pvd ( havn't even started on how to make this happen)
if you want to see fields xbmc is storing, do a individual export (export per movie). This will create a .nfo+images into the directory that movie is stored in. (.nfo file is xml). You can pull this apart to see what is required.
Anyway. attached what i have done so far.
Also included is an example of what xbmc will export. (I imported from xbmc and then exported to folder)
Things that i know are broken (in this version :) )
nearfiles needs too be fixed/checked to save images into same directory that .nfo file is generated.
associated xml entry inside .nfo file needs to be written correctly
I don't know how to make credits work (yet :) )
[attachment deleted by admin]
rick.ca:
Thanks for the update, CAD.
It seems you forgot to include your attachments. I'm curious about the XBMC export sample, although I suppose it may not tell me more than the wiki entry. I'm wondering if the information in XBMC is at all customizable, or can you only use the fields they provide (obviously you can choose whether or not to populate them). Can you, for example, create a custom field, and then fill it with anything you like from PVD? The main reason I'm wondering is to understand whether the template you're creating will be a general solution for all XBMC users, or something each will have to modify for their own use.
It sounds like you're almost there. You have the nearfiles function now. Hopefully nostra can help you with the other issues. Maybe deazo can beta test for you. ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version