smfontes / xbmc-mylibrary

Automatically exported from code.google.com/p/xbmc-mylibrary
0 stars 0 forks source link

Linux systems cannot use meta data rewrite because of path handling #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have fixed this issue with the include DIFF file. I was unsure how best to 
contribute this to the code base.

When using XBMC.mylibrary on a Linux machine it is necessary to set the 
streaming dropbox using a local path: "/home/user/stream-files".

This can be used as a samba share and mapped in XBMC to a path like this: 
"smb://COMPUTER_NAME/home/user/stream-files"

When XBMC.mylibrary goes to add prefix or suffix info to the metadata it will 
fail because it is using the local path, but the XBMC database has samba paths 
stored in it.

I have fixed this problem. Now, in the Config.xml file a user may specify a 
"LinuxSambaPrefix". This is everything that goes before the local path in order 
to turn it into a samba address. In the XML file it would look like this:

[code]
<Dropbox>
  <streaming>/home/user/stream-files</streaming>
  <LinuxSambaPrefix>smb://COMPUTER_NAME</LinuxSambaPrefix>
</Dropbox>
[/code]

Please note that if you have a password protected samba share the username and 
password MUST be included in the Config.xml prefix like this:
<LinuxSambaPrefix>smb://user:password@COMPUTER_NAME</LinuxSambaPrefix>

Original issue reported on code.google.com by szc...@gmail.com on 28 May 2012 at 9:25

Attachments:

GoogleCodeExporter commented 9 years ago
This patch has been applied.
Nice work.

Original comment by bradyvid...@gmail.com on 15 Aug 2012 at 1:05

GoogleCodeExporter commented 9 years ago

Original comment by bradyvid...@gmail.com on 15 Aug 2012 at 1:06

GoogleCodeExporter commented 9 years ago

Original comment by bradyvid...@gmail.com on 15 Aug 2012 at 1:09