[RELEASE] - Rating Update

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MCipher Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Thumbs Up  got it working on dharma Post: #101
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!
(This post was last modified: 2012-01-13 21:47 by MCipher.)
find quote
krish_2k4 Offline
Fan
Posts: 578
Joined: Aug 2010
Reputation: 9
Post: #102
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
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #103
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!

[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
krish_2k4 Offline
Fan
Posts: 578
Joined: Aug 2010
Reputation: 9
Post: #104
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
(This post was last modified: 2012-02-02 19:53 by krish_2k4.)
find quote
ezechiel1917 Offline
Aeon Group
Posts: 618
Joined: Jun 2005
Location: Czech Republic
Post: #105
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+

Ubuntu 12.04 | XBMC PRE-13.0 | VDR + VNSI4 @ Technotrend CT-3650 CI | Transparency | FlexRAID
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #106
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

[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
krish_2k4 Offline
Fan
Posts: 578
Joined: Aug 2010
Reputation: 9
Post: #107
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.
find quote
voidy Offline
Member
Posts: 90
Joined: Mar 2009
Reputation: 0
Post: #108
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.
find quote
m4x1m Offline
Senior Member
Posts: 202
Joined: Mar 2011
Reputation: 12
Post: #109
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!

[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
voidy Offline
Member
Posts: 90
Joined: Mar 2009
Reputation: 0
Post: #110
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
find quote
Post Reply