XBMC & Other Shenanigans
Sync’ing Thumbnails - Dropbox Style

If you have your XBMC database set up somewhere else, you will run into the problem that your thumbnails folders are not sync’ed across XBMC instances.  This may not be a big deal, but it means your fanart isn’t there, neither will be your season artwork, or episode thumbnails.

I ran into this problem and thought of a couple ways of doing it (rsync/ssh/scp) but that was all un-necessarily complicated.  Finally I opted for something a little simpler.  Dropbox.

So, setup a dropbox account and download their command line client for Linux (here).  After you download it, extract it and run it (dropboxd) out of your home folders ~/.dropbox-dist folder.  Now you just need to link it to your account by going to the URL that is shown to you.

So next we actually need to make sure dropbox sync’s our Thumbnails folder (~/.xbmc/userdata/Thumbnails) to the great ol’ cloud in the sky.  To do so, go into your dropbox folder and create a directory that links to your thumbnails folder by doing this:

cd ~/Dropbox
ln -s ~/.xbmc/userdata/Thumbnails/ ./

Next we’ll download the CLI tool, move it to the bin folder and make it executable so we can actually play with dropbox:

wget http://www.dropbox.com/download?dl=packages/dropbox.py
mv dropbox.py /usr/bin
sudo chmod +x /usr/bin/dropbox.py

You can now query your dropbox app by simply using “dropbox.py status” on the command line.

Once your dropbox setup is done, you want to set it so it runs on bootup.  So edit your crontab:

crontab -e

If asked what editor you want to use, pick option 2 (it asked me this on xbmc-live), then insert the following line by hitting “o” and then saving by hitting “esc” then “:wq”

@reboot $HOME/.dropbox-dist/dropboxd

So there you go.  Do this same thing on all your XBMC boxes, and enjoy your items being synced.  The initial upload of your content might take a little bit depending on how much data you have.

  1. xbmcstuff posted this