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


- darkscout - 2011-01-31

ppic Wrote:and you don't read your log?
the problem is clear there no ?

Code:
unix_err:'d' error : 'Permission denied'

Except every single other logo has the exact same permissions:
http://sprunge.us/gBFF


- ppic - 2011-01-31

well, i can't tell you more.
Quote:IOError: [Errno 0] Error: 'smb://server.local/TV/My Name Is Earl/logo.png'

this doesn't appear to be a script error there... if it works for other logo, no reason why it can't on those.


- DataFran - 2011-02-06

Figured it out!

Please disregard.


- DataFran - 2011-02-06

Accidental duplicate post.


- ppic - 2011-02-06

yes you need to send some parameters when launching the script !


Script broken for TVDB.COM? - fenrisswolf - 2011-02-06

Not quite sure when it happened, but apparently http://WWW.TVDB.COM is now a religious website of some kind. the current address oft the "Online TV Database" is http://WWW.THETVDB.COM, and it seems this is breaking the script, as I had kept getting "Site Unreachable" errors for a few weeks.

I thought it was my connection/computer acting up, but it seems it's the script looking in the wrong place for stuff.

How do I fix it?


- Hitcher - 2011-02-06

It's always been thetvdb.com and the script uses that address it's just the descriptions that are labelled wrongly.


- fenrisswolf - 2011-02-07

Odd. There should be no issues then, since all sites seem to be up, and I have made no real changes beyond automatic upgrades. And yet I keep getting the "Site Unreachable" error.

So, how can I debug the script to find out what's really gone wrong with my setup, in that case?


- Tex8503 - 2011-02-15

I'm having this same issue with the 'site unreachable error'. Nothing has really changed with my setup - any suggestions?

EDIT: Here's a bit more detail - it fails in both batch and single mode. The error is in the log as follows:



22:32:58 T:2916 M:4294967295 NOTICE: -->Python Interpreter Initialized<--
22:32:58 T:2916 M:4294967295 NOTICE: ### Logo Downloader starting ...
22:32:58 T:2916 M:4294967295 NOTICE: ### author: Ppic
22:32:58 T:2916 M:4294967295 NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
22:32:58 T:2916 M:4294967295 NOTICE: ### credits: Team XBMC PASSION, http://passion-xbmc.org/
22:32:58 T:2916 M:4294967295 NOTICE: ### date: 20-10-2010
22:32:58 T:2916 M:4294967295 NOTICE: ### version: 2.2.0
22:32:58 T:2916 M:4294967295 NOTICE: ### DEBUG: True
22:32:58 T:2916 M:4294967295 NOTICE: ### logo downloader initializing...
22:32:58 T:2916 M:4294967295 NOTICE: ### reinit
22:32:58 T:2916 M:4294967295 NOTICE: ['script.logo-downloader', 'mode=solo', 'logo=True', 'clearart=True', 'showthumb=True', 'showname=Carniv\xc3\xa0le']
22:32:58 T:2916 M:4294967295 NOTICE: arg 0: script.logo-downloader
22:32:58 T:2916 M:4294967295 NOTICE: arg 1: mode=solo
22:32:58 T:2916 M:4294967295 NOTICE: arg 2: logo=True
22:32:58 T:2916 M:4294967295 NOTICE: arg 3: clearart=True
22:32:58 T:2916 M:4294967295 NOTICE: arg 4: showthumb=True
22:32:58 T:2916 M:4294967295 NOTICE: arg 5: showname=Carnivàle
22:32:58 T:2916 M:4294967295 NOTICE: no arg6
22:32:58 T:2916 M:4294967295 NOTICE: no arg7
22:32:58 T:2916 M:4294967295 NOTICE: ### Start Solo Mode
22:32:58 T:2916 M:4294967295 NOTICE: sql dat: select tvshow.c12 , path.strpath from tvshow,tvshowlinkpath,path where tvshow.idShow=tvshowlinkpath.idshow and tvshowlinkpath.idpath=path.idpath and tvshow.c00="Carnivàle"
22:32:58 T:2916 M:4294967295 NOTICE: xml dat: <record><field>70860</field><field>I:\MediaShare4\TV\Carnivale\</field></record>
22:33:04 T:2916 M:4294967295 NOTICE: Traceback (most recent call last):
22:33:04 T:2916 M:4294967295 NOTICE: File "C:\Users\Tex8503\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py", line 70, in get_html_source
22:33:04 T:2916 M:4294967295 NOTICE: sock = urllib.urlopen( url )
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\urllib.py", line 82, in urlopen
22:33:04 T:2916 M:4294967295 NOTICE: return opener.open(url)
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\urllib.py", line 190, in open
22:33:04 T:2916 M:4294967295 NOTICE: return getattr(self, name)(url)
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\urllib.py", line 313, in open_http
22:33:04 T:2916 M:4294967295 NOTICE: h.endheaders()
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\httplib.py", line 798, in endheaders
22:33:04 T:2916 M:4294967295 NOTICE: self._send_output()
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\httplib.py", line 679, in _send_output
22:33:04 T:2916 M:4294967295 NOTICE: self.send(msg)
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\httplib.py", line 646, in send
22:33:04 T:2916 M:4294967295 NOTICE: self.connect()
22:33:04 T:2916 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\httplib.py", line 630, in connect
22:33:04 T:2916 M:4294967295 NOTICE: raise socket.error, msg
22:33:04 T:2916 M:4294967295 NOTICE: IOError: [Errno socket error] (10061, 'Connection refused')
22:33:04 T:2916 M:4294967295 NOTICE: ### ERROR impossible d'ouvrir la page http://www.lockstockmods.net/logos/getlogo.php?id=70860
22:33:06 T:2916 M:4294967295 NOTICE: False
22:33:06 T:2916 M:4294967295 ERROR: Error Type: exceptions.TypeError
22:33:06 T:2916 M:4294967295 ERROR: Error Contents: expected string or buffer
22:33:06 T:2916 M:4294967295 ERROR: Traceback (most recent call last):
File "C:\Users\Tex8503\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py", line 641, in ?
downloader()
File "C:\Users\Tex8503\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py", line 141, in __init__
self.solo_mode()
File "C:\Users\Tex8503\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py", line 163, in solo_mode
self.search_logo()
File "C:\Users\Tex8503\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py", line 458, in search_logo
match = re.findall("""<logo url="(.*?)"/>""" , self.lockstock_xml)
File "special://xbmc/system/python/Lib\sre.py", line 167, in findall
return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer


- ppic - 2011-02-15

with the script launching with this command line, you won't get all image, they will be all named folder.jpg.
for the error, seems you xbmc can't open fanart.tv webpage.


- Wanilton - 2011-02-15

I can not access the site http://www.xbmcstuff.com, same error result of their colleague, for some reason this site is always unavailable to me, "Site Unreachable", any suggestions on how I can work around this problem? the other sites used in the addon, I usually access the internet browser without any problem this sites
http://www.lockstockmods.net ok
http://www.thetvdb.com ok
http://www.fanarts.tv ok

I Use XBMC Version final Dharma, with Windows 7 64 bits.

My log

07:45:58 T:4804 M:2522333184 NOTICE: ### ERROR impossible d'ouvrir la page http://www.xbmcstuff.com/tv_scraper.php?&id_scraper=p7iuVTQXQWGyWXPS&size=big&thetvdb=84024

Question: Is it possible to replace the xbmxstuff.com who can not access for some of the other sites that I access, and maintain the addon working?


- ppic - 2011-02-15

i'm waiting Kode to say me it's ok to switch.


- Tex8503 - 2011-02-15

Wierd - mainly because I'm using the 'Night' skin SVN...

but you're right - I can not access Fanarts.tv - what modifications should I make to prevent this error?

Thanks!


- ppic - 2011-02-15

well...
i don't know why you can't access the site...
i'll try to pm kode to know if it's ok to switch.


- Tex8503 - 2011-02-20

I hate to be a pest... but has any progress been made on a fix? I don't want to seem ungrateful for the work that's been done on this - but its so awesome that I actually find myself lost without the ability to use this script Smile

Even a work around to bypass the source that's down to other or alternate sources would be helpful..