Changes to NFO file format! ALL DEVELOPERS OF THIRD-PARTY MEDIA MANAGERS PLEASE READ!

  Thread Rating:
  • 1 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Information  Changes to NFO file format! ALL DEVELOPERS OF THIRD-PARTY MEDIA MANAGERS PLEASE READ!
Post: #1
hi guys,

i'm sorry that i have to do this to all of you, but it was necessary as the current state was just embarrassing Smile

please mind http://trac.xbmc.org/changeset/21882

i opted to not keep the old loading code as this would never die. one clean, painful cut Smile
find quote
Nicezia Offline
Fan
Posts: 369
Joined: Nov 2006
Reputation: 0
Location: Montgomery, Alabama
Post: #2
now if we can just get the ability for loading of fanart link info from the nfo my world is complete Big Grin

ScraperXML Open Source Web Scraper Library compatible with XBMC XML Scrapers


I Suck, and if you act now by sending only $19.95 and a self addressed stamped envelop, so can you!

[Image: teamumx_sigline.png]
find quote
althekiller Offline
Retired Team-Kodi Member
Posts: 5,002
Joined: May 2004
Reputation: 12
Post: #3
Update the NFO "samples" in the wiki!
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #4
what do you mean nicezia? we can surely load fanart url info from nfo files.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #5
althekiller Wrote:Update the NFO "samples" in the wiki!

done your holy-exclamation-sign-ness Wink
find quote
fekker Offline
Posting Freak
Posts: 1,545
Joined: Oct 2008
Reputation: 30
Post: #6
Quick question

If i'm processing an invalid xml file (i.e. one with the imdb string at the end) I can't deserialize it or process it as valid xml

Using a simple regex <thumb>(.*?)</thumb> will load thumbs from actor elements as well as the ones we want to process

I can think of a few ways to clean up the data, the easiest is if the thumb for non actor data must be in the file prior to an <actor> tag. (or strip out all actor info, or attempt to reform the xml, or do a lookaround for actor).


is there an order in which thumb must be listed in the .nfo file?
( i.e. thumb listed before actor information)
(This post was last modified: 2009-07-28 22:08 by fekker.)
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #7
no order requirements - standard xml rules. if you read c++, you can see CVideoDatabase::UpdateOldversion() v29->30 - that's how i did it.

if you do music (haven't checked lately) it's v13->14
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #8
Note that the (video)database update didn't appear to hit SVN?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #9
arr!
find quote
billyad2000 Offline
Media Companion Founder
Posts: 727
Joined: Oct 2007
Reputation: 17
Post: #10
Just read this thread, thanks for the update spiff, it's appreciated, handling thumbs like that was a bit of a headache.

Homepage for XBMC Media Companion, and XBMC-DB - seperate nfo files http://www.billyad2000.co.uk
Forums for XBMC Media Companion http://billyad2000.darkbb.com/
find quote
Nicezia Offline
Fan
Posts: 369
Joined: Nov 2006
Reputation: 0
Location: Montgomery, Alabama
Post: #11
spiff Wrote:what do you mean nicezia? we can surely load fanart url info from nfo files.

meaning there's no call to check for multiple fanarts stored locally (the system only checks for one local fanart, rather than being able to specify multiple, tried making a patch to rectify that, but following the code was a little difficult for me, and it seems if the url is non-existant, it has some function to fill it in... though i can't figure out how to change that to make is so if the url is empty it uses the folderpath of the movie to fill in the url

as i posted quite some time ago, i like storage of all my info pertinent to the given movie in the folder next to the file(still trying to figure out how to pull that off with actor images).. the internet is good to aquire info, but sometimes i take my portable drives to a friends and i like to have it all with the movie, and i hate having to do the same things over and over again

ScraperXML Open Source Web Scraper Library compatible with XBMC XML Scrapers


I Suck, and if you act now by sending only $19.95 and a self addressed stamped envelop, so can you!

[Image: teamumx_sigline.png]
(This post was last modified: 2009-08-08 19:54 by Nicezia.)
find quote
JackieBrown Offline
Donor
Posts: 231
Joined: Jan 2008
Reputation: 0
Location: San Antonio, TX
Post: #12
I'd like that as well as I store my each movie info in it's own folder.

But it's no show stopperBig Grin
find quote
fekker Offline
Posting Freak
Posts: 1,545
Joined: Oct 2008
Reputation: 30
Post: #13
Path question

If the movie is stored at folder level, and contains a VIDEO_TS folder, does the .actors folder go into the root movie folder, or under the VIDEO_TS folder?

Example
d:\media\movies\The Dark Knight\VIDEO_TS\VTS_01_0.VOB ...etc...

so
d:\media\movies\The Dark Knight\.actors
OR
d:\media\movies\The Dark Knight\VIDEO_TS\.actors

Thanks!
- fekker
find quote
Dilligaf Offline
Fan
Posts: 731
Joined: Dec 2008
Reputation: 29
Post: #14
Looking in my files it goes in d:\media\movies\The Dark Knight\VIDEO_TS\.actors


Mike

If I have been of help, please add to my reputation as a way of saying thanks, it's free.
find quote