XBMC Community Forum
[RELEASE] - Rating Update - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] - Rating Update (/showthread.php?tid=107331)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


- krish_2k4 - 2011-11-27 15:02

m4x1m Wrote:Two separate procedure:

1. Rating (first question) this update rating and numbers of users who have voted

2. Top250 (second question) this update only position

If you say yes only at the second question will update only the position in top250

if you say yes at the first question will update all movies ratings (long)

ahh yes got ya, my bad i thought the first option meant update all movie ratings and the 2nd option to update just the top250 movies.

edit: first option updated the views, my bad!


- m4x1m - 2011-11-27 15:30

Machine-Sanctum Wrote:Would it maybe be an idea to set these options in add-on settings?
So user sets his preferences there and you just ask a confirmation on running the add-on.
Coding that only takes a couple of minutes. I could help you on that if you want.

I'm working on it Big Grin


- clock2113 - 2011-11-27 22:20

Has anybody tried this on the 10.1 official release? Wondering if anybody's confirmed success/failure before I backup my database and try...

If not, this plugin may be worth moving to pre-Eden for; my top250 playlist is woefully out of date!


- Steveb - 2011-11-28 02:50

m4x1m Wrote:Eh eh the api change has modified somethings and I had not noticed!

New Version:
script.ratingupdate-1.0.5.zip

Code:
v 1.0.5:
- Fix again bug that now was adding -1 to the real position taking from Top250

Cheers mate, That did the trick, great work.


- m4x1m - 2011-11-29 18:26

BE CAREFUL

This new version doesn't use anymore an external imdb api site (this week-end I'll delete the files on a server), but use a great imdbphp api class by IzzySoft Projects then to work you must install php-cgi on your system (see README)

Read the changelog for the updates.

I've tested the script as best I could, but there may be some bugs in that case post the debug log.

Code:
Linux Ubuntu Users:
- Install php5-cgi "sudo apt-get install php5-cgi"
- For other distribution check the name of package (could be different) and install it
- Check the correct path (/usr/bin/ by default) in the settings add-on

Windows Users:
- Download php-cgi from http://windows.php.net/download/ choose the last "VC9 x86 Non Thread Safe" zip package
- Unzip in C:\php5\ or wherever you like
- Update the correct path in the settings add-on (use backslahes for example c:/php5/)


New version (Major release):
script.ratingupdate-1.1.0.zip

Code:
v 1.1.0:
- Changed the method of scraping. IMDbPHP now is run in a local system to prevent the ban of the server IP address by the IMDb staff.
  See README file to how to install php-cgi binary.
- Added the ability to scrape ratings of TV Shows (no single episodes, to many differences with thetvdb.com).
  The first launch could ask you to choose the correct TV Show from a list then the IMDb ID will be written in the database.
- Changed order of questions: 1. Top250 - 2. Movies - 3. TV Shows
- Fix possible freeze when scraping a single movie. Show result using notifications instead of dialog.ok (I hope)
- Added setting to disable single procedure, confirmation and to hide the progress dialog.
- Added setting to delete IMDb id from TV Shows so you can rescrape and choose another title if the first one chosen was wrong.



- bobrap - 2011-11-29 22:12

Bad link for download, for me.


- PatK - 2011-11-30 04:07

I get a 'There was a problem at the API site!' notice with V1.1.0


- m4x1m - 2011-11-30 13:08

bobrap Wrote:Bad link for download, for me.

It's a SkyDrive MSN I've tested and work for me! Oo


- m4x1m - 2011-11-30 17:09

PatK Wrote:I get a 'There was a problem at the API site!' notice with V1.1.0

Yes, it's my fault!

New Version:
script.ratingupdate-1.1.1.zip

Code:
v 1.1.1:
- Fix bug that had blocked access to the IMDb site while scraping a single movie.
- Fix other some minor bug.
- Improved code and output log



- PatK - 2011-12-01 01:45

It seems IMDB is still blocking on a single update for me using script.ratingupdate-1.1.1.zip