Posts: 4,997
Joined: May 2004
Reputation:
12
Update the NFO "samples" in the wiki!
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
what do you mean nicezia? we can surely load fanart url info from nfo files.
Posts: 1,545
Joined: Oct 2008
Reputation:
31
fekker
Posting Freak
Posts: 1,545
2009-07-28, 22:05
(This post was last modified: 2009-07-28, 22:08 by fekker.)
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)
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
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
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Note that the (video)database update didn't appear to hit SVN?
Posts: 727
Joined: Oct 2007
Reputation:
17
Just read this thread, thanks for the update spiff, it's appreciated, handling thumbs like that was a bit of a headache.
Posts: 1,545
Joined: Oct 2008
Reputation:
31
fekker
Posting Freak
Posts: 1,545
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
Posts: 971
Joined: Dec 2008
Reputation:
44
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.