Kodi Community Forum
xbmc-fmr : Keep movie rating up to date - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: xbmc-fmr : Keep movie rating up to date (/showthread.php?tid=176722)



xbmc-fmr : Keep movie rating up to date - celedhrim - 2013-10-28

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.


RE: xbmc-fmr : Keep movie rating up to date - celedhrim - 2013-10-31

v0.2 out , now with sqlite support ( native xbmc database format)


RE: xbmc-fmr : Keep movie rating up to date - Msan - 2013-10-31

what all needs to be installed for this to run??


RE: xbmc-fmr : Keep movie rating up to date - celedhrim - 2013-10-31

you need ruby and some ruby gem :

Required gem

sequel
mysql2 or/and sqlite
imdb
ruby-progressbar

http://guides.rubygems.org/rubygems-basics/#installing_gems


RE: xbmc-fmr : Keep movie rating up to date - celedhrim - 2013-11-17

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


RE: xbmc-fmr : Keep movie rating up to date - celedhrim - 2013-11-18

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