2009-05-02, 06:49
I just want to say thanks in advance for anyone that can help me with this problem.
I just started using XBMC last month and it's awesome!
My next move is to get itunes working and I'm using the plugin that was created for OS X, although my HTPC is Vista. The plugin has windows code, but it's not completed yet.
What I've done is this.
I have a macbook with itunes that is using a local library in the default location. I'm syncing this library to a shared location on my NAS so XBMC can access it. The problem is when the plugin goes in to read the library files, it identifies the location of the mp3 files like this - /users/saejin/music/itunes...
It doesn't know they exist on my nas.
It uses the below python script to create the filename:
def _cleanup_filename(self, filename):
if filename.startswith("file://localhost/"):
return unquote(filename[17:])
else:
return unquote(filename)
filename returns - users/saejin/music/itunes/itunes music/xxxxx.mp3
I'd like to know if there is a way to add some text to the beginning of the filename so it would look like this.
filename = z:/users/saejin/music/...
I know nothing about python scripting, but I have done C++. I assume filename is just a string variable and you can add or remove text from it.
Again any help would be great. And if it works, I'll share the modified plugin so that anyone else with a similar setup can access their itunes library from XBMC on Windows.
I just started using XBMC last month and it's awesome!
My next move is to get itunes working and I'm using the plugin that was created for OS X, although my HTPC is Vista. The plugin has windows code, but it's not completed yet.
What I've done is this.
I have a macbook with itunes that is using a local library in the default location. I'm syncing this library to a shared location on my NAS so XBMC can access it. The problem is when the plugin goes in to read the library files, it identifies the location of the mp3 files like this - /users/saejin/music/itunes...
It doesn't know they exist on my nas.
It uses the below python script to create the filename:
def _cleanup_filename(self, filename):
if filename.startswith("file://localhost/"):
return unquote(filename[17:])
else:
return unquote(filename)
filename returns - users/saejin/music/itunes/itunes music/xxxxx.mp3
I'd like to know if there is a way to add some text to the beginning of the filename so it would look like this.
filename = z:/users/saejin/music/...
I know nothing about python scripting, but I have done C++. I assume filename is just a string variable and you can add or remove text from it.
Again any help would be great. And if it works, I'll share the modified plugin so that anyone else with a similar setup can access their itunes library from XBMC on Windows.