(How can I?) Central library at home, local library when on the go

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
elmerohueso Offline
Senior Member
Posts: 186
Joined: Jul 2011
Reputation: 2
Post: #1
I use a shared, central at home, shared between all my devices. However, when I take my laptop on trips, I still want to use XBMC to access local content and plugins. Has anyone come up with a way to do this, in Windows, that doesn't involve manually renaming/moving advancedsettings.xml each time I leave or come home?
I've also got XBMC on my Android tablet, so does anyone know how to do the same thing in Android?
I know XML isn't a programming language, but I'm wondering if XBMC will utilize XLS if/case statements. Maybe then, I could have the advancedsettings check for the existence of my server and then choose the appropriate library.
find quote
Josh1454 Offline
Junior Member
Posts: 16
Joined: Jul 2012
Reputation: 1
Post: #2
Easiest way is to create different XBMC user profiles, one for "Home" with sources pointing to your central library and another for "Away" with sources pointing to your local library.
find quote
elmerohueso Offline
Senior Member
Posts: 186
Joined: Jul 2011
Reputation: 2
Post: #3
When I say central library, I mean using MySQL, not just shared sources. AFAIK, central databases setup this way can't be assigned to a specific profile as the DB settings are set in advancedsettings.xml. If I'm away from home and leave my settings alone, XBMC won't even boot because it can't find my DB.
find quote
thrak76 Online
Moderator
Posts: 1,211
Joined: Mar 2011
Reputation: 21
Location: Lake Michigan Shoreline
Post: #4
Josh1454 hit on the right answer.

http://wiki.xbmc.org/index.php?title=profiles

Everything in the userdata folder can be changed for each profile. The advancedsettings.xml, and the sources.xml are both kept in you userdata folder.
find quote
Josh1454 Offline
Junior Member
Posts: 16
Joined: Jul 2012
Reputation: 1
Post: #5
Ah I see, I think I read a solution to this while setting up my own MySQL backend. Perhaps it's in one of my bookmarks... Good luck to you in the mean time!

Edit: Looks like thrak76 beat me to it! Smile
(This post was last modified: 2012-09-01 05:19 by Josh1454.)
find quote
elmerohueso Offline
Senior Member
Posts: 186
Joined: Jul 2011
Reputation: 2
Post: #6
So, I would set up two different profiles, each pointing to different profile folders, and set the one using a local DB as the default profile?
find quote
Josh1454 Offline
Junior Member
Posts: 16
Joined: Jul 2012
Reputation: 1
Post: #7
Sounds about right. I found this how-to thread that might be helpful. It's written for iPad users but the principle is the same.
find quote
James321 Offline
Junior Member
Posts: 3
Joined: Sep 2012
Reputation: 0
Post: #8
Totally agree with Josh1454. I think he just gave you the answer you wanted Big Grin
find quote
elmerohueso Offline
Senior Member
Posts: 186
Joined: Jul 2011
Reputation: 2
Post: #9
Yep, I already acknowledged that. The problem I kept running into was that, as long as the master profile pointed to my central DB, even if the log in screen was turned on, XBMC wouldn't boot unless it could see the remote DB. That's why I didn't think the solution would work. However, once I assigned a *secondary* profile to use the central DB instead of the master profile, it worked.
find quote
thrak76 Online
Moderator
Posts: 1,211
Joined: Mar 2011
Reputation: 21
Location: Lake Michigan Shoreline
Post: #10
I'm glad that it worked out for you.

Profiles are pretty neat, and very useful for a family machine! I'd never tried them in the manner you're using (local and remote sources), so I learned from this thread too.
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 18,366
Joined: Jan 2011
Reputation: 222
Location: Arizona, USA
Post: #11
There's also a section for this in the MySQL guide on the wiki: HOW-TO:Sync multiple libraries/Portable devices and profiles

You can make easy links to the XBMC wiki using double brackets around words: [[debug log]] = debug log, [[Add-on:YouTube]] = Add-on:YouTube, [[Adding videos to the library]] = Adding videos to the library, [[userdata]] = userdata, etc
find quote