xbmc-fmr : Keep movie rating up to date
#1
Hi ,

This ruby script ( my first one !) help you to synchronize rating in your mysql database against IMDB.

You have to set mysql connection setting in the script.
The default is to update 10 random movie in database.
But you can check all movies at once , all 0 rating movie etc.

If a IMDB id in mysql database isn't valid , it take the first matching title on imdb quand fix the imdb id in database.

Crontab mode is for smooth always up to date

Exemple for update 5 random movie every hour :
Code:
* */1 * * * xbmc-fmr -c -n 5

All detail and script available here : https://github.com/Celedhrim/xbmc-fix-movies-rating

It fits my need and if it may be useful for other , I'll be happy !

Celedhrim.
Reply
#2
v0.2 out , now with sqlite support ( native xbmc database format)
Reply
#3
what all needs to be installed for this to run??
1: Nvidia Shield TV (2017) 16GB - 2: Beelink MinixMXIII II - 3: Beelink MinixMXIII II - 4: Beelink MinixMXIII II
NAS: unRAID 6.3 Pro • Case (NZXT H440) • MB (MBD-X7SBE with SIM1U+) • CPU (Xeon X3360) • RAM (4x2GB DDR2) • SATA (6 On MB, 8 AOC-SAT2-MV8) • PSU (EVGA SUPERNOVA 650 G2) • HDD (2 x Toshiba 3TB parity, 6 x WD Red 3TB xfs, 1 x 512GB SSD cache)  • UPS (APC BR1000G)
Reply
#4
you need ruby and some ruby gem :

Required gem

sequel
mysql2 or/and sqlite
imdb
ruby-progressbar

http://guides.rubygems.org/rubygems-basi...lling_gems
Reply
#5
v 0.3 is out !

https://github.com/Celedhrim/xbmc-fix-movies-rating

changelog :
  • Fix encoding for sqlite database
  • Add a verbose option
  • Add ability to proceed last movie(s) with -n option

Don't forget to install the ruby gem needed !

Gem are tools , and I use this tool to make this utilitie.
My script needs sequel , mysql2/sqlite , imdb , progress bar
So install the gem to have it to run Smile
Reply
#6
Usage exemple :

Code:
./xbmc-fmr -l -n2 -v

Resulting output :

Code:
Check the 2 last movies
--------------------------------------------------------------------------------
| Progress: 1/2                                                                
| Update The Wolverine : le combat de l'immortel                                
| Rating: 0.000000 => 6.900000                                                  
| Votes : 0 => 113,923                                                          
--------------------------------------------------------------------------------
| Progress: 2/2                                                                
| Already up to date Là-Haut                                                    
--------------------------------------------------------------------------------
Time: 00:00:05 |=============================================>| 100.00% Progress
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc-fmr : Keep movie rating up to date0