[RELEASE] - Rating Update

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
krish_2k4 Offline
Fan
Posts: 578
Joined: Aug 2010
Reputation: 9
Post: #41
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!
(This post was last modified: 2011-11-27 16:30 by krish_2k4.)
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #42
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

[Image: sigpic_89488_ea84cd53d774f0e868b713eb0adf873f.jpg]
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB WI-FI
Running Ubuntu Precise 12.04.01 - FRODO 12.00 - Transparency!
Movies: 892 - TV Show: 97 - Albums: 1143
find quote
clock2113 Offline
Fan
Posts: 636
Joined: Feb 2007
Reputation: 0
Location: XBMC+Unraid=Happy!
Post: #43
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!

XBMC: XBMCbuntu 12.0, with Transparency!
17.5 TB Unraid Server: 2500 movies, 8800 episodes of TV Apps: SABnzbd, Sickbeard, Couchpotato, mySQL
HTPC: E6500, mAtx, 210GT
Watching on: Sony 32" Bravia with lowend Sony 5.1 HTIB
find quote
Steveb Offline
Fan
Posts: 305
Joined: Oct 2009
Reputation: 3
Location: Adelaide, Australia
Post: #44
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.

"Political Correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end"
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #45
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.

[Image: sigpic_89488_ea84cd53d774f0e868b713eb0adf873f.jpg]
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB WI-FI
Running Ubuntu Precise 12.04.01 - FRODO 12.00 - Transparency!
Movies: 892 - TV Show: 97 - Albums: 1143
find quote
bobrap Offline
Fan
Posts: 347
Joined: Dec 2008
Reputation: 1
Post: #46
Bad link for download, for me.

YOYIZDERZOMENEMOHOZEZAZEZDENDERIZHOZEZ
find quote
PatK Offline
Posting Freak
Posts: 2,258
Joined: Mar 2010
Reputation: 67
Star    Post: #47
I get a 'There was a problem at the API site!' notice with V1.1.0
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #48
bobrap Wrote:Bad link for download, for me.

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

[Image: sigpic_89488_ea84cd53d774f0e868b713eb0adf873f.jpg]
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB WI-FI
Running Ubuntu Precise 12.04.01 - FRODO 12.00 - Transparency!
Movies: 892 - TV Show: 97 - Albums: 1143
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #49
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

[Image: sigpic_89488_ea84cd53d774f0e868b713eb0adf873f.jpg]
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB WI-FI
Running Ubuntu Precise 12.04.01 - FRODO 12.00 - Transparency!
Movies: 892 - TV Show: 97 - Albums: 1143
find quote
PatK Offline
Posting Freak
Posts: 2,258
Joined: Mar 2010
Reputation: 67
Star    Post: #50
It seems IMDB is still blocking on a single update for me using script.ratingupdate-1.1.1.zip
find quote
Post Reply