-- RePosted after site-crash, so I can find them back when MY stuff crashes
I have 3 XBMC setups on 3 apple-tv's, all pointing to a single NAS w/ the movies, and got around all this by using/creating a few perl-scripts, creating the (for me) perfect setup.
I only care for daily (so not realtime) updates of the watched-flags & regular updates of IMDB ratings/votes & top250 placements of the movies, and the living-room XBMC setup is the master.
At 2am at night, I rsync the other appletv's databases to the master-appletv, which then updates the watched-flags from the others and IMDB ratings to itself. An hour later, the other 2 sync back the master-db.
This also means that adding new content is handled through the master setup, and is pushed to the others at night. If needed, I can do a manual push ofcourse. Library is exported to individual files to allow for re-scraping later on if needed.
Quote:
Originally Posted by quotaholic
Creative solution! Any chance you would be willing to share those perl scripts?
Of course, but note that they have been created w/ my specific setup in mind, so provided as-is
Sync watched-flags scripts:
http://pastebin.com/f8a8c9c4
Note: It syncs on filename, so make sure you have unique filenames for your movies.
You could/should probably better use idFile as the key IF AND ONLY IF the masterdb is indeed pushed to the others, using the same paths everywhere.
Update IMDB ratings locally:
http://pastebin.com/f6779ebf9
This one uses IMDB::Film (see CPAN) to fetch the IMDB data. Very unstable, as IMDB changes the layout often, but good-enough for me.
I actually use a modified Film.pm for this (as top250 search is currently broken), see the diff:
http://pastebin.com/f54e5b4d