[RELEASE] - Rating Update

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
theowiesengrund Offline
Junior Member
Posts: 15
Joined: Jul 2011
Reputation: 0
Thumbs Up    Post: #91
Awesome! Can't wait.
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #92
Ben91 Wrote:Any chance to get this feature in XBMC : http://forum.xbmc.org/showthread.php?tid=117414 Confused

Please...

I would love personnal ratings showed in XBMC.

It should be simple to do with your script ?

Anyway, thank you for the consideration.

Cheers.

My idea is this ...

With this script you can scrape a single movie (Transparency does this in Info Movie -> Extra)

now I can add an option in addon settings that skip the scrape and let you to enter your personal vote (with this you loose the imdb rating) but you can do it one at a time. The number of users who have voted will be set to zero and if you scrape all movies the movie with zero users will be skipped to prevent unwanted updates.

So you think it might be sufficient?

1. Yes - I make the change!
2. No - I can't do anything!

[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
Ben91 Offline
Junior Member
Posts: 30
Joined: Oct 2011
Reputation: 0
Question    Post: #93
m4x1m Wrote:My idea is this ...

With this script you can scrape a single movie (Transparency does this in Info Movie -> Extra)

now I can add an option in addon settings that skip the scrape and let you to enter your personal vote (with this you loose the imdb rating) but you can do it one at a time. The number of users who have voted will be set to zero and if you scrape all movies the movie with zero users will be skipped to prevent unwanted updates.

So you think it might be sufficient?

1. Yes - I make the change!
2. No - I can't do anything!

Thank you very much for your consideration.

Infact the most important would be to display the user rating.

Manually rating via IMDb is quite appropriate and gives us a backup "in the cloud".

So it would scraps and shows the personal ratings from IMDb.

It would be something like this:

# User set in the plugin settings their IMDb account settings.

and when the plugin scraps :

# If a personnal rating for the current movie / TV show on IMDb is set,
# then scraps and add it / shows it in addition to the IMDb rating and top250.

Is it possible ?

That would be awesome !!!

Thanks.

++
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #94
Ben91 Wrote:Thank you very much for your consideration.

Infact the most important would be to display the user rating.

Manually rating via IMDb is quite appropriate and gives us a backup "in the cloud".

So it would scraps and shows the personal ratings from IMDb.

It would be something like this:

# User set in the plugin settings their IMDb account settings.

and when the plugin scraps :

# If a personnal rating for the current movie / TV show on IMDb is set,
# then scraps and add it / shows it in addition to the IMDb rating and top250.

Is it possible ?

That would be awesome !!!

Thanks.

++

Unfortunately this is not possible!

This script uses imdbphpapi class that does nothing to retrieve specific data from imdb website (it's a workaround because imdb doesn't allow scraping) so even after you have login in imdb the script would not know where to take the personal ratings, it will continue to extrapolate the overall data!

Sad

[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
Ben91 Offline
Junior Member
Posts: 30
Joined: Oct 2011
Reputation: 0
Post: #95
Too bad...

Thank you very much for your previous proposition.

I'm trying to look for the best solution for the moment and a great one would be the patch which has be made few months ago to add support for rating videos in XBMC.

I pulled the patch : https://github.com/xbmc/xbmc/pull/607

I cross my fingers. And I'll see later for how to backup ratings / sync in the cloud (trakt.tv or I don't know what else...)

Thank you again.

Cheers.
find quote
Scidd0w Offline
Junior Member
Posts: 25
Joined: Dec 2010
Reputation: 0
Post: #96
m4x1m;

Thank you very much for this script/addon! I was looking for this for months and tried different solutions but none worked very well.
This one worked flawlessly and does exactly what I want. Again thank you very much for the effort you made!
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #97
New Version:
script.ratingupdate-1.1.7.zip

Code:
v 1.1.7:
- Fixed issue related MacOS (I hope, I don't have a MAC to test).
- Added more debug info (visible when debugging is enabled in xbmc: Settings -> System -> Debugging -> Enable debug logging).

[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
theowiesengrund Offline
Junior Member
Posts: 15
Joined: Jul 2011
Reputation: 0
Post: #98
Not working for me on a MAC.

Well the Script runs, but updates nothing.

Getting always the same error for every movie:

Code:
23:45:05 T:2961309696   DEBUG: [Rating Update] - Exec: /opt/local/bin/php-cgi -q /Users/XXX/Library/Application Support/XBMC/addons/script.ratingupdate/resources/ratings.php -d mid=tt0050083
23:45:05 T:2961309696   DEBUG: [Rating Update] - Data: No input file specified.
23:45:05 T:2961309696  NOTICE: [Rating Update] - 12 Angry Men: there was a problem with the IMDb site!

But after the TV Shows question the Script fails with this error:

Code:
23:45:23 T:2961309696    INFO: -->Python script returned the following error<--
23:45:23 T:2961309696   ERROR: Error Type: <type 'exceptions.IndexError'>
23:45:23 T:2961309696   ERROR: Error Contents: list index out of range
23:45:23 T:2961309696   ERROR: Traceback (most recent call last):
                                              File "/Users/XXX/Library/Application Support/XBMC/addons/script.ratingupdate/resources/rating_scraper.py", line 541, in <module>
                                                if __tvshows__ == "true": TVShows()
                                              File "/Users/XXX/Library/Application Support/XBMC/addons/script.ratingupdate/resources/rating_scraper.py", line 367, in __init__
                                                complete = self.scan()
                                              File "/Users/XXX/Library/Application Support/XBMC/addons/script.ratingupdate/resources/rating_scraper.py", line 528, in scan
                                                else: self.updating()
                                              File "/Users/XXX/Library/Application Support/XBMC/addons/script.ratingupdate/resources/rating_scraper.py", line 438, in updating
                                                else: id = imdbid[0]
                                            IndexError: list index out of range
23:45:23 T:2961309696    INFO: -->End of Python script error report<--

I tried the commands on the terminal, don't work either:

Code:
php-cgi -q /Users/XXX/Library/Application Support/XBMC/addons/script.ratingupdate/resources/ratings.php -d mid=tt0033337
No input file specified.

Something wrong with the binary? I have no idea.
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #99
theowiesengrund Wrote:Not working for me on a MAC.
Well the Script runs, but updates nothing.
Something wrong with the binary? I have no idea.

No it's my fault!

New Version:
script.ratingupdate-1.1.8.zip

Code:
v 1.1.8:
- Added missing quotes to the executable path (To fix issue in MACOS).

[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
theowiesengrund Offline
Junior Member
Posts: 15
Joined: Jul 2011
Reputation: 0
Post: #100
I can confirm that MAC OS version is also working!

Thank you so much! Great work!
find quote
Post Reply