Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 40
[RELEASE] - Rating Update v1.4.3
#91
Thumbs Up 
Awesome! Can't wait.
Reply
#92
Ben91 Wrote:Any chance to get this feature in XBMC : http://forum.xbmc.org/showthread.php?tid=117414 Huh

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!
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
Reply
#93
Question 
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.

++
Reply
#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
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
Reply
#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.
Reply
#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!
Reply
#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).
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
Reply
#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.
Reply
#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).
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
Reply
I can confirm that MAC OS version is also working!

Thank you so much! Great work!
Reply
Thumbs Up 
Hi there,

just wanted to mention, that I got the script (1.1.8) working on Dharma 10.1.


I had to edit two files with two changes each:

- Replaced import of "json" by "simplejson" as I had no json module available (it is not included in python 2.4 that is used by Dharma). simplejson was already in my addons folder (scripts.module.simplejson).
Code:
import simplejson as json

- In every os.popen command, the php filepath was put into doublequotes, I removed the doublequotes. For example:
Code:
# Returns empty file -> no results (wrong):
get_open = os.popen( binary_path + ' -q "' + __resource__ + '/top250.php"', "r" )

# Returns content that was requested (right):
get_open = os.popen( binary_path + ' -q ' + __resource__ + '/top250.php', "r" )
Unfortunately this change will not work for anyone having whitespaces in their path (__resource__).
Cannot understand, why python has a problem with the doublequotes - if I execute the request including the doublequotes, I get a result. But os.popen returns an empty file in that case.
"binary_path" is double-quoted as well but that seems to be ok.


Further, I had to add the xbmcvfs module as my Dharma did not contain it. You can get it here:
http://code.google.com/p/passion-xbmc/ (install the repository plugin and download scripts.module.xbmcvfs from your addon screen)


I checked these changes by downloading Top250 as well as updating my whole database (~500 movies). Worked well, I have my ratings updated now Smile
Try at your own risk - and don't forget a backup of your files.

Maybe these changes will help you getting the plugin compatible with Dharma as I might be not the only one using it Wink
Thanks so much for your work so far!
Reply
this seems to have stopped updating in Eden Beta2
im using script.ratingupdate-1.1.8 version.

heres the xbmc.log don't know which part you need so copy/pasted it all!

http://pastebin.com/zmeubEJE
Reply
krish_2k4 Wrote:this seems to have stopped updating in Eden Beta2
im using script.ratingupdate-1.1.8 version.

heres the xbmc.log don't know which part you need so copy/pasted it all!

http://pastebin.com/zmeubEJE

Enable in xbmc: Settings -> System -> Debugging -> Enable debug logging restart the script (few movies is enough) and repost debug log.

I've tried with latest nightly build and the script work perfectly!
LG M227WD - ASUS S1-AT5NM10E - LOGITECH HARMONY 300i - MINI KEYBOARD USB
Running Ubuntu Precise 12.04.04 - FRODO 12.03 - Transparency!
Movies: 996 - TV Show: 98 - Albums: 1161

My Script: Rating Update - Thumbnails Cleaner
Reply
m4x1m Wrote:Enable in xbmc: Settings -> System -> Debugging -> Enable debug logging restart the script (few movies is enough) and repost debug log.

I've tried with latest nightly build and the script work perfectly!

here is the debug log

http://pastebin.com/WtS7qqn9
Reply
similar issue: there was a problem with the imdb site!

http://pastebin.com/bQhuusng

reply from imdb seems ok from the debug log, but no update to db and xbmc gui completely freezes after few seconds/minutes

php5-cgi 5.3.9 (tried some other versions with the same result), python 2.7.2+
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 40

Logout Mark Read Team Forum Stats Members Help
[RELEASE] - Rating Update v1.4.37