Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2010-05-07, 16:49
(This post was last modified: 2010-05-07, 16:51 by kraqh3d.)
Hey >>X<< thats a great tip! Would you mind writing up a wiki page dealing with the various ways to account for media path changes and how to update the library accordingly? You know what. I'll even sign myself up to help. If you're up to it, PM me. We start with an outline and take it from there.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2010-05-07, 17:23
(This post was last modified: 2010-05-07, 17:25 by kraqh3d.)
I didn't realize something was already there. What's listed there is kind of dangerous. It's just not just changing "smb://nas/disk-3/" to "smb://nas/disk-1/". It's really changing all paths to be "smb://nas/disk-1" plus everything from pos17 onward from the existing path. It should have a where clause of something like WHERE strPath LIKE 'smb://nas/disk-3/%' to limit it.
* edit *
Also, SQLite's substr() supports the simple substr(strPath,17) construction to denote from pos17 thru the end of the string.
Posts: 4,132
Joined: May 2004
Reputation:
4
sho
Team-XBMC Member
Posts: 4,132
I guess the two should be combined and of course all "dangerous" stuff removed.
Posts: 90
Joined: Oct 2009
Reputation:
0
Running Windows version of XBMC.
I'm in the process of doing the same thing as the OP -- moving the location of my video files from one drive to another.
I exported my library to an xml file, and was planning on just opening it up in a text editor and doing a global find and replace to change the old drive letter to the new drive letter, but I noticed that there doesn't seem to be any instances of paths to image files on the old drive or to the XBMC program folder (I'm not sure if the images that XBMC uses are cached somewhere locally or if it actually reads the image files that I have throughout my video drive each time it displays an image... also, I'm using XBMC in portable mode). In the exported xml file, there are plenty of <thumb> and <fanart> tags with "http" paths to images that I'm assuming are online (I think most or all are to imdb.com or themoviedb.org). Why is this? Where is the information stored for the paths to image files associated with each video in the library? Is it just not exported with the library?
I really don't want to have to go through and manually set all the thumbnails and fanart again, which it seems like I have to do for approx 1 in 5 movies / TV show seasons, as for some reason they randomly don't detect the appropriate local image files.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
Yeah, thats something you can't change easily as the cached filename is a crc32 hash computed from the item's path. If the path is different, the computer hash is different.
Posts: 90
Joined: Oct 2009
Reputation:
0
What about a link from a movie to a TV show. I have some movies that I've linked to TV shows so that they show up under those TV shows. Is that information exported, or will I have to redo those links?
If it's not exported from the library, is it because it's not stored in the library, and if so, where is this info stored? Just curious.
Also curious where the actual info that says "use this cached image file for movie X's thumbnail" is stored.