XBMC Community Forum
[RELEASE] Logo Downloader Script - 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] Logo Downloader Script (/showthread.php?tid=74912)



- spiff - 2010-09-29 14:54

ppic, you're probably treating a utf-8 string with a different locale, or you're treating a non-unicode string as unicode. simplest fix is probably to use the u prefix in python.

u"foo" = a unicode string
"foo" = a string in the configured locale.


- ppic - 2010-09-29 14:58

ok, i'll try that, thx


- prae5 - 2010-09-29 15:16

Have done a little more testing, and have partly resolved this.

1. OSX - completely resolved. Web server was disabled on this box. Enabling it fixed things - i didn't actually realise this was a requirement for the script to run. It should give an error about this in the log. Verified working with both local and mysql database.

2. Linux - going to do a little more checking and will post back soon.


- prae5 - 2010-09-29 15:33

OK have checked web server is running on the linux box and it is.

Tried running script and failed, tried to download a single logo too and that failed.

http://pastebin.com/RerLLpgw


- ppic - 2010-09-29 15:34

ok i thought that local webserver was always on Sad
i'll see if i can check that.

the behaviour you have in linux is strange, script doesn't seems to launch too here !


- spiff - 2010-09-29 15:35

this is a regression. the http api should be usable from scripts even if server is disabled.


- ppic - 2010-09-29 15:51

ok, i was thinking it should work that way, thank spiff.


- prae5 - 2010-09-29 15:59

Hmm only slightly odd thing about the linux box is xbmc is built using external python. I think 2.6.2 could this be causing the issue?

Anyway to add some more verbose logging?

Is it possible to run this script from the console - if so what param's should i pass to it to test?


- spiff - 2010-09-29 16:03

yes external python is a recipe for disaster.


- prae5 - 2010-09-29 16:06

spiff Wrote:yes external python is a recipe for disaster.

So far everything has worked - I'm using openelec's linux image on a revo. All the scripts / addon's I've tried up until now have been fine....