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


got it working on dharma - MCipher - 2012-01-13 21:43

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!


- krish_2k4 - 2012-02-01 21:26

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


- m4x1m - 2012-02-02 15:14

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!


- krish_2k4 - 2012-02-02 19:50

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


- ezechiel1917 - 2012-02-03 12:25

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+


- m4x1m - 2012-02-03 13:12

krish_2k4 Wrote:here is the debug log

http://pastebin.com/WtS7qqn9

It's an issue in xbmc related python in Windows platform.

Read the post above of MCipher.
Quote:- In every os.popen command, the php filepath was put into doublequotes, I removed the doublequotes. For example: etc etc.

The problem are the doublequote like in Dharma.

If the problem isn't resolved with the final stable version of XBMC I will take measures to solve it!

Sad


- krish_2k4 - 2012-02-03 14:56

m4x1m Wrote:It's an issue in xbmc related python in Windows platform.

Read the post above of MCipher.


The problem are the doublequote like in Dharma.

If the problem isn't resolved with the final stable version of XBMC I will take measures to solve it!

Sad

ahh, i'll wait, have no clue how to edit the script so won't mess around with it! hope it gets resolved in the final xbmc.


- voidy - 2012-02-05 14:35

i feel like a retard Tongue i cant seem to find the php-cgi binary and i cant seem to find what to do in the readme Tongue

im on a mac running snow leopard with xbmc eden beta2 on the experiance 1080 skin.


- m4x1m - 2012-02-05 16:14

voidy Wrote:i feel like a retard Tongue i cant seem to find the php-cgi binary and i cant seem to find what to do in the readme Tongue

im on a mac running snow leopard with xbmc eden beta2 on the experiance 1080 skin.

I'm sorry but I haven't a Mac to guide you step by step for the installation of php-cgi. Sad

Search on google how to install it in Mac then in the settings addon you can browse the folder to set the right path!


- voidy - 2012-02-05 22:11

m4x1m Wrote:I'm sorry but I haven't a Mac to guide you step by step for the installation of php-cgi. Sad

Search on google how to install it in Mac then in the settings addon you can browse the folder to set the right path!

wow thanks for the quick reply i just try and figure it out myself np