Kodi Community Forum
[RELEASE] Logo Downloader Script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Logo Downloader Script (/showthread.php?tid=74912)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


- spiff - 2010-09-29

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


- ppic - 2010-09-29

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


- prae5 - 2010-09-29

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

yes external python is a recipe for disaster.


- prae5 - 2010-09-29

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....


- ppic - 2010-09-29

no, it can't be run in console, i'm using some xbmc dependency to fill the tvshow list and for the dialog.

yes python 2.6 should be the caused of this malfunction, i think that some functions i use may be deprecated.

the script before starting my code.


- prae5 - 2010-09-29

hmm ok. I've sent a message to openelec to ask him how why he's opted for 2.6.2 in his builds.

If all else fails I'll take a look at rebuilding the image with external 2.4.

thanks


- ppic - 2010-09-29

ok keep me in touch with that, maybe there's a way to make it work on 2.6 too with few change.


- djon - 2010-09-29

For some strange reason The Simpsons logo won't show up in my Alaska Revisited skin.

This is in the log:

16:46:25 T:4036 M:1360023552 ERROR: Texture manager unable to load file: D:\TVShows\The Simpsons\/logo.png

I assume it has something to do with the " \/ ", but why is there a slash in there and how do I remove it, so the skin will load the logo correctly?


- mcborzu - 2010-09-29

With XBMC closed delete userdata/Database/textures.db

If it was a coding error all logos wouldn't show not just one. All others show just fine, correct?


- djon - 2010-09-29

It was only the Simpsons that missed the logo yes.

I deleted textures.db and it all works now, thanks!

Just to be curious, what exactly does textures.db contain? Links to all images in the skin?


- mcborzu - 2010-09-29

djon Wrote:It was only the Simpsons that missed the logo yes.

I deleted textures.db and it all works now, thanks!

Just to be curious, what exactly does textures.db contain? Links to all images in the skin?

All images outside the skins /media folder get cached. Helps speed things up I believe or my guess really....


- ppic - 2010-09-29

that's it yes


- topfs2 - 2010-09-29

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

I've checked, with internal httpapi there is nothing wrong, it works without the webserver running.

If you get the HttpApi: foo in the logs, its compiled in and called.


- ppic - 2010-09-29

spiff Wrote: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.

adding u doesn't change the log. i've changed the string

another one "é" was in a comment line and show error too