Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[Tutorial] Shared Library / Shared Sources
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
[Tutorial] Shared Library / Shared Sources
3rd Jun, 2013, 07:13 PM
Post: #13
MM3 Offline
Registered
Posts: 9
Joined: May 2013
Reputation: 0
RE: [Tutorial] Shared Library / Shared Sources
(2nd Jun, 2013 05:08 PM)mk01 Wrote:  
(2nd Jun, 2013 04:28 PM)MM3 Wrote:  What are the advantages of doing this way? Is there any code that goes within mediasources.xml file?

you media sources (and changes in scrappers settings defined on those sources) always read from the central location, updated as well only there.

it's like the shared db, you can add a source / favorite on any xbmc and you will see it on all other installations of xbmc and vice versa.

the path substitution means the files are not going to be copied to local machine. they are shared from the one location.

it's also possible to share add-ons settings this way. as soon as you install new add-on which already you have configured on other pc / atv / rpi, the add-on will work with the global shared setting. with more xbmc installations you don't have to walk always around the house to update & configure each installation.

(and in case of crash/reinstall you just install clean xbmc, the same set of modules and all other is taken from central location, so in few seconds you have the same media as before)

mk

Ok, I am convinced. So can you described the steps for not so literate? Is it something like this:

1. Create mediasources.xml file. I'm not sure of its contents? Or is it a blank file that xbmc will write to? Place that file on my NAS, say in my media share/directory in a directory I created called 'xbmcdata'.
2. Do the same for the sources.xml - again is this file blank and will be written to when set up on one of the xbmc's? Or is the contents of the sources folder the same as it is now - pointing to the correct share/directories?
3. Edit the advancedsettings.xml file on each machine by adding the above code, eg, (from my Pi):

Code:
<advancedsettings>
<videodatabase>
        <type>mysql</type>
        <host>10.0.0.5</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </videodatabase>

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

     <videolibrary>
          <importwatchedstate>true</importwatchedstate>
     </videolibrary>

<pathsubstitution>
<substitute>
    <from>special://masterprofile/sources.xml</from>
    <to>smb://10.0.0.5/Media/xbmcdata/sources.xml</to>
</substitute>
<substitute>
    <from>special://masterprofile/mediasources.xml</from>
    <to>smb://10.0.0.5/Media/xbmcdata/mediasources.xml</to>
</substitute>
</pathsubstitution>

<network>
        <cachemembuffersize>20971520</cachemembuffersize>
   </network>
   <fanartres>540</fanartres>
   <imageres>256</imageres>
   <gputempcommand>echo "$(/opt/vc/bin/vcgencmd measure_temp | grep -o "[0-9]\{2\}") C"</gputempcommand>
   <cputempcommand>echo "$(/opt/vc/bin/vcgencmd measure_temp | grep -o "[0-9]\{2\}") C"</cputempcommand>
   <lookandfeel>
        <webserver>true</webserver>
        <guires>720</guires>
   </lookandfeel>
   <bginfoloadermaxthreads>2</bginfoloadermaxthreads>
   <video>
     <adjustrefreshrate>  
       <override>
         <fps>23.976</fps>
         <refresh>24.0</refresh>
       </override>
     </adjustrefreshrate>
   </video>
</advancedsettings>

4. Do the same for each machine - Mac, RPi, Apple TV, omitting the RPi specific stuff in the advancesettings.xml file.

Is that about right?

Thanks in advance.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
[Tutorial] Shared Library / Shared Sources - brantje - 3rd Jan, 2013, 04:03 AM
RE: [Tutorial] Shared Library / Shared Sources - CurlyMo - 4th Jan, 2013, 10:08 AM
RE: [Tutorial] Shared Library / Shared Sources - Smiggel - 21st May, 2013, 01:19 AM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 21st May, 2013, 03:59 AM
RE: [Tutorial] Shared Library / Shared Sources - Smiggel - 27th May, 2013, 05:16 PM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 27th May, 2013, 10:46 PM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 2nd Jun, 2013, 05:14 AM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 2nd Jun, 2013, 04:28 PM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 2nd Jun, 2013, 05:08 PM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 3rd Jun, 2013 07:13 PM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 27th May, 2013, 11:44 AM
RE: [Tutorial] Shared Library / Shared Sources - brantje - 2nd Jun, 2013, 09:26 PM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 2nd Jun, 2013, 10:01 PM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 3rd Jun, 2013, 08:15 PM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 3rd Jun, 2013, 10:45 PM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 3rd Jun, 2013, 10:47 PM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 3rd Jun, 2013, 10:52 PM
RE: [Tutorial] Shared Library / Shared Sources - mk01 - 3rd Jun, 2013, 11:07 PM
RE: [Tutorial] Shared Library / Shared Sources - MM3 - 3rd Jun, 2013, 11:10 PM
RE: [Tutorial] Shared Library / Shared Sources - MiguelB - 12th Jul, 2013, 07:24 AM
Re: [Tutorial] Shared Library / Shared Sources - rikardo1979 - 12th Jul, 2013, 07:36 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
Question [SOLVED] XMBC doesn't start automatically with nfs shared configured Lukeid 11 34,986 24th Mar, 2014 10:55 AM
Last Post: mk01
  Shared Library ilgrank 5 20,029 19th Jul, 2013 04:13 AM
Last Post: ilgrank
  Multiple Pi with shared library Calp87 1 7,485 19th May, 2013 07:58 PM
Last Post: rikardo1979
  [PROBLEM] can't access a shared folder on my laptop(windows 8) xhuntrkillerx 4 17,064 3rd May, 2013 01:40 AM
Last Post: xhuntrkillerx
  [PROBLEM] Can't see shared folders with Win7 Muertomatao 4 15,052 19th Mar, 2013 04:12 AM
Last Post: Muertomatao

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 28th Jun, 2025, 04:08 AM Powered By MyBB, © 2002-2025 MyBB Group.