(2009-09-28, 03:51)Shish Wrote: I have XBMC installed on my portable hard drive for use at friend's houses and such; the -p switch is happily storing all my settings in the right place, but when adding things to the media library, they're stored with the drive letter included, and this changes on each PC, so the library breaks.
As such, I think a virtual drive (similar to the existing special://home/ ) which refers to "whatever drive the current XBMC install is running on" would be very useful.
(In the meantime I'm trying to write a plugin to achieve the same effect, but that's being a pain, and needs a separate plugin for each of video / music / photos, and it seems painfully slow compared to accessing the filesystem directly...)
you should do this:
1) you need ONE subst drive (in my case X) - that's all you need... then
x:\virtual media folders <-- REAL FOLDER
x:\virtual media folders\My Movies <--- a Symbolic link to ANY place you choose
x:\virtual media folders\My Music <--- a Symbolic link to ANY place you choose
x:\virtual media folders\My TV Series <--- a Symbolic link to ANY place you choose
When you setup your XBMC 'sources', ALWAYS point to X:\Virttual Media Folders\<whatever> then you can remap <whatever> as you please, without breaking the library :-)
Here's an example 'Portable Launcher' batch file for you to use (it assumes the 'bat' file is in the same place as xbmc):
@
echo off
Rem ****** Map X: to this folder *********
subst X: /D
subst X: "%~dp0."
Rem ****** Create Virtual Media Folders ********
rd /S /Q "x:\Virtual Media Folders"
mkdir "x:\Virtual Media Folders"
mklink /D "x:\Virtual Media Folders\Backdrops 01" "F:\Media\Backdrops 01"
mklink /D "x:\Virtual Media Folders\Movies 01" "F:\Movies 01"
mklink /D "x:\Virtual Media Folders\Music 01" "D:\Data\Music\Processed"
mklink /D "x:\Virtual Media Folders\Music Videos 01! "F:\Music Videos 01"
mklink /D "x:\Virtual Media Folders\TV Series 01" "F:\TV Series 01"
Rem ****** Launch XBMC ********
start /B x:\XBMC\XBMC.exe -p
HOPEFULLY you'll grasp what this is doing. It's very simple in essence and ideal for portable users.
It does what 'sources' SHOULD do in XBMC (but doesn't)