Path substitution?
#1
Hi,

I've setup MySQL database on my mac mini, and the apple tv2 in the bedroom to share the library. The apple tv can see the library, and shares the watched flags etc, however any time I click to play a file it says this file is no longer available, do you wish to remove from library

Obviously the files on the mini are fine, so I'm thinking it's the path substitution in my advancedsettings.xml. Here's my file, can anyone assist?

Thanks


<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.112</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>

<musicdatabase>
<type>mysql</type>
<host>192.168.1.112</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>

<pathsubstitution>
<substitute>
<from>/MACINTOSH HD/MEDIA FILES/MOVIES/</from>
<to>AFP://192.168.1.112:548/MEDIA FILES/MOVIES/</to>
</substitute>
<substitute>
<from>/MACINTOSH HD/MEDIA FILES/TV/</from>
<to>AFP://192.168.1.112:548/MEDIA FILES/TV/</to>
</substitute>
</pathsubstitution>
</advancedsettings>
Reply
#2
Find one of the files on the Mac Mini in the library, press "i" to bring up the info, look at the file path format for where it says the file is. Then double check that your path substitution on the Apple TV 2 is correct.
Reply
#3
Thanks mate, I've checked this out and the path shown on the mac (/media files/tv/) matches the advancedsettings file, however I still can't play via library on atv2. Maybe I should copy the sources.xml from mac mini to atv2?

If I view the file info on atv, it also shows the exact same path as the mini
Reply
#4
Let's see what the debug log says: HOW-TO:Find and post XBMC.log for iOS (wiki)
Reply
#5
Ok, here goes

http://pastebin.com/7FKdxwVQ
Reply
#6
Things are case-sensitive.

movies != Movies
AFP != afp

Cheers,
Jonathan
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
#7
Result! Thanks to all who helped......school boy error in the end
Reply

Logout Mark Read Team Forum Stats Members Help
Path substitution?0