Correct way to path sub database files?
#1
I'm trying to path sub userdata folder from D to C (on XP)
First i tried path sub Database and Thumbnails folder,
But from what it looks, only Thumbnails work :

Without path sub :

Image

Path sub Thumbnails and Database

Image

It's really strange because i copied the rest of the file in userdata, so it should be completely same..
Also, movie information no longer exists, and the set content option appeared again.

Upon further research, it turns out database pathsub-ing didn't work,
XBMC always create new .db files even though i pathsub it...

Image

Is there anyway to solve this?

I even tried to path sub every single folder, and dabatase files, but it still didn't work

Here's my log file, you can see the advancedsettings.xml within it

http://pastebin.com/Y1dY2BTc
Reply
#2
It needs to use the special protocol (wiki). Use this instead:


Code:
<pathsubstitution>
  <substitute>
    <from>special://masterprofile/</from>
    <to>D:\userdata\</to>
  </substitute>
</pathsubstitution>
Reply
#3
(2012-08-06, 11:55)Ned Scott Wrote: It needs to use the special protocol (wiki). Use this instead:


Code:
<pathsubstitution>
  <substitute>
    <from>special://masterprofile/</from>
    <to>D:\userdata\</to>
  </substitute>
</pathsubstitution>

Thanks but it still doesnt work
I've tried that before..
xbmc still generates new database files on startup

here's the log file :
http://pastebin.com/1Mminakt
Reply
#4
anyone?
Reply
#5
hmm, that should work. Can you turn debugging on for your debug log? (Settings -> System -> Debugging). That will give us some more info.
Reply
#6
(2012-08-07, 01:32)Ned Scott Wrote: hmm, that should work. Can you turn debugging on for your debug log? (Settings -> System -> Debugging). That will give us some more info.

Hmm.. actually for the previous debug i've turn the debug on via addon.xml,
but here's the log with debug turned on from settings

http://pastebin.com/56tyCF31
Reply
#7
debugging is still not turned on:

Code:
09:10:36 T:540  NOTICE: Disabled debug logging due to GUI setting. Level 0.
Reply
#8

(2012-08-07, 07:00)Ned Scott Wrote: debugging is still not turned on:

Code:
09:10:36 T:540  NOTICE: Disabled debug logging due to GUI setting. Level 0.

Hmm it's strange, it keeps reverting back
I had to force it via advancedsettings.
here you go:

http://pastebin.com/2JeQ8W2v

oh yeah, i changed it to D:\tes\userdata
Reply
#9
CMIIW, doesn't this mean the subtitution is ignored?
I've tried with thumbnails folder and this is what i got

17:06:06 T:1024 NOTICE: Log level changed to 3
17:06:06 T:1024 DEBUG: Configuring path substitutions
17:06:06 T:1024 DEBUG: Registering substition pair:
17:06:06 T:1024 DEBUG: From: [C:\Documents and Settings\Admin\Application Data\XBMC\userdata\Thumbnails\]
17:06:06 T:1024 DEBUG: To: [D:\tes\userdata\Thumbnails\]

17:06:06 T:1024 NOTICE: Getting hardware information now...
17:06:06 T:1024 INFO: Using analog output
17:06:06 T:1024 INFO: AC3 pass through is enabled
17:06:06 T:1024 INFO: DTS pass through is enabled
17:06:06 T:1024 INFO: AAC pass through is disabled
17:06:06 T:1024 INFO: MP1 pass through is disabled
17:06:06 T:1024 INFO: MP2 pass through is disabled
17:06:06 T:1024 INFO: MP3 pass through is disabled
17:06:06 T:1024 NOTICE: Checking resolution 11
17:06:06 T:1024 NOTICE: Default DVD Player: dvdplayer
17:06:06 T:1024 NOTICE: Default Video Player: dvdplayer
17:06:06 T:1024 NOTICE: Default Audio Player: paplayer
17:06:06 T:1024 NOTICE: Disabled debug logging due to GUI setting. Level 1.
17:06:06 T:1024 NOTICE: Log level changed to 1
17:06:06 T:1024 NOTICE: Loading media sources from special://masterprofile/sources.xml
17:06:06 T:1024 INFO: creating subdirectories
17:06:06 T:1024 INFO: userdata folder: special://masterprofile/
17:06:06 T:1024 INFO: recording folder:
17:06:06 T:1024 INFO: screenshots folder:
17:06:06 T:1024 INFO: thumbnails folder: special://masterprofile/Thumbnails
12:15:21 T:2080 DEBUG: trying to set locale to eng_aus
12:15:21 T:2080 INFO: global locale set to English_Australia.1252
12:15:21 T:2080 INFO: load language fileConfusedpecial://xbmc/language/English/strings.xml
12:15:21 T:2080 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/cpluff.dll)

How is it possible when it is already register the substituted path in the beginning?
Is this a bug?
Should i submit it?
I think it has something to do with path-sub in the same machine.
I looked around the forum but havent found similar case because most people path sub to different machine
So it might be not working for local machine
Reply
#10
special://masterprofile/Thumbnails is just an internal XBMC shortcut.
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
Reply
#11
(2012-08-08, 02:06)jmarshall Wrote: special://masterprofile/Thumbnails is just an internal XBMC shortcut.

i see.. So what could be the problem?
this is really a bug then? is it really impossible to path sub in the same machine?

i even tried using the actual path (c:/...thumbnails)in the beginning of this thread, but still no luck
Reply
#12
Edited
Reply
#13
(2012-08-08, 04:05)denywinarto Wrote:
(2012-08-08, 04:02)bissoncurtis Wrote: I've tried that before..

and it worked? can you share us your debug file?
sorry what are those images..? the links are dead

That's a spam bot. They copy/paste a comment said earlier in the thread, then try to insert spam links via images.

As for your issue, I'm not sure why exactly it's not working. I do know that someone was able to pathsub their entire userdata folder once, but I can't seem to find the thread for it yet. I'll keep looking, and maybe try it myself here later on.
Reply
#14
(2012-08-08, 05:10)Ned Scott Wrote:
(2012-08-08, 04:05)denywinarto Wrote:
(2012-08-08, 04:02)bissoncurtis Wrote: I've tried that before..

and it worked? can you share us your debug file?
sorry what are those images..? the links are dead

That's a spam bot. They copy/paste a comment said earlier in the thread, then try to insert spam links via images.

As for your issue, I'm not sure why exactly it's not working. I do know that someone was able to pathsub their entire userdata folder once, but I can't seem to find the thread for it yet. I'll keep looking, and maybe try it myself here later on.

Lol sorry i'll delete my previous post.

Hmm Maybe I'll share my purpose for this setup,
I need xbmc to start automatically on startup and then minimized to tray,
For tray minimizing i use trayconizer.
For auto startup i use firedaemon.

Now i create a .bat file which clicks the shortcut on desktop automatically, it has to be that way to make trayconizer works
Here's some ss:

Image

And since my library database is shared and drive C is deepfreezed,
i need some sort of way to change the library path to D
So there's junction or symlink via link shell extension or path sub method

But whenever i run this using junction, and test it on startup
a fresh xbmc with the default (confluence skin) mysteriously started, when i look on task manager, it doesn't exist.

Image

And what's worse. it doesn't appear on the log file!
I was assuming this is because i use junction link, so now i'm gonna try pathsub instead.
But guess what?
I got the same result, that mysterious xbmc starts again Sad

So i guess there's no point trying to solve this
since the problem seems to be on the way firedaemon starts the service.

Anyone have better idea to autostart xbmc from shortcut like that?
Reply
#15
Anyone ever figure this out? Pathsubbing Database Files?
Reply

Logout Mark Read Team Forum Stats Members Help
Correct way to path sub database files?0