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)



- ppic - 2010-06-15

thanks !


Every single logo fails - Pr.Sinister - 2010-06-22

.


- ppic - 2010-06-23

hum, i'm pretty sure "-" cause this error, can you try same kind of share with a simple name to confirm that?


- djdafreund - 2010-07-02

I just found out about this, and grabbed it. I am finding the same experience though about it scanning then showing "0 Logo Downloaded! TVShow:11 - 0 percent completed (0 logo found))", and this is with using Version 1.2.3. Using Windows 7 64bit. I would love to possibly include this with Back-Row with your permission. This is great!! Of course we will change a few things to better use logo's. And when you add context support down the road, we will add that to the context choices.


- ppic - 2010-07-02

yes, no problem, please post a debug log

i will change some part for the new logo repository


- djdafreund - 2010-07-02

Sure thing, and thanks.

00:54:05 T:4940 M:2137796608 ERROR: Texture manager unable to load file: C:\Program Files (x86)\XBMC\addons\script.logo-downloader\fanart.jpg
00:54:14 T:812 M:2128650240 ERROR: Control 21 in window 10000 has been asked to focus, but it can't
00:54:15 T:4940 M:2136494080 ERROR: Texture manager unable to load file: C:\Program Files (x86)\XBMC\addons\script.logo-downloader\fanart.jpg
00:54:16 T:5988 M:2135953408 NOTICE: -->Python Interpreter Initialized<--
00:54:17 T:5988 M:2135375872 NOTICE: ### Logo Downloader starting ...
00:54:17 T:5988 M:2135375872 NOTICE: ### author: Ppic
00:54:17 T:5988 M:2135375872 NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
00:54:17 T:5988 M:2135375872 NOTICE: ### credits: Team XBMC PASSION, http://passion-xbmc.org/
00:54:17 T:5988 M:2135375872 NOTICE: ### date: 09-06-2010
00:54:17 T:5988 M:2135375872 NOTICE: ### version: 1.2.3
00:54:17 T:5988 M:2135375872 NOTICE: ### No Args found
00:54:19 T:3332 M:2135797760 NOTICE: WebServer: GET | http://www.themurrayworld.com/xbmc/logos/
00:54:19 T:3332 M:2135797760 ERROR: WebServer: Failed to open special://xbmc/webhttp://www.themurrayworld.com/xbmc/logos/
00:54:19 T:5988 M:2135785472 NOTICE: ### Starting Bulk Mode
00:54:19 T:5988 M:2135769088 ERROR: Control 20 in window 10101 has been asked to focus, but it can't
00:54:19 T:5988 M:2134421504 NOTICE: ### Checking 10 TVshow: Eastbound and Down id: 82467
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 20 TVshow: Family Guy id: 75978
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 30 TVshow: Futurama id: 73871
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 40 TVshow: Heroes id: 79501
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 50 TVshow: House id: 73255
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 60 TVshow: Scrubs id: 76156
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 70 TVshow: Smallville id: 72218
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2129256448 NOTICE: ### No match
00:54:20 T:5988 M:2129256448 NOTICE: ### Checking 80 TVshow: South Park id: 75897
00:54:20 T:5988 M:2129256448 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2128535552 NOTICE: ### No match
00:54:20 T:5988 M:2128535552 NOTICE: ### Checking 90 TVshow: The Cleveland Show id: 93991
00:54:20 T:5988 M:2134519808 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2134519808 NOTICE: ### No match
00:54:20 T:5988 M:2134519808 NOTICE: ### Checking 100 TVshow: The Simpsons id: 71663
00:54:20 T:5988 M:2134536192 NOTICE: ### Search for a Logo...
00:54:20 T:5988 M:2134536192 NOTICE: ### No match
00:54:24 T:5988 M:2144309248 NOTICE: ### 0 Logo Downloaded ! TVshow: 10
00:54:24 T:5988 M:2144309248 NOTICE: ### Exiting ...
00:57:24 T:812 M:2176987136 WARNING: ADDON: cpluff: 'Could not return information about unknown plug-in Dim.'
01:03:02 T:2780 M:2140651520 ERROR: Texture manager unable to load file: C:\Program Files (x86)\XBMC\addons\script.logo-downloader\fanart.jpg
01:03:10 T:812 M:2142543872 NOTICE: Storing total System Uptime
01:03:10 T:812 M:2142580736 NOTICE: Saving settings
01:03:10 T:812 M:2142576640 NOTICE: stop all
01:03:10 T:812 M:2142576640 NOTICE: ES: Stopping event server
01:03:10 T:812 M:2142576640 NOTICE: stopping upnp
01:03:10 T:5784 M:2142605312 NOTICE: ES: UDP Event server stopped
01:03:11 T:812 M:2142920704 NOTICE: Webserver: Stopping...



- ppic - 2010-07-02

Code:
00:54:19 T:3332 M:2135797760 NOTICE: WebServer: GET | http://www.themurrayworld.com/xbmc/logos/
00:54:19 T:3332 M:2135797760 ERROR: WebServer: Failed to open special://xbmc/webhttp://www.themurrayworld.com/xbmc/logos/

strange line there !

why "special://xbmc/webhttp://www.themurrayworld.com/xbmc/logos/"

never seen that.

is there a proxy enabled in your xbmc options?


- djdafreund - 2010-07-02

Ah shoot. Don't know how that got done honestly. Unchecked that setting (never use that option, THAT'S what's weird.) and all download fine now. Glad you spotted that, and thanks again. GREAT work on this!!!!! Much appreciated. Smile


- ppic - 2010-07-06

v 1.3 OUT:
- update to download from new repo: (http://www.lockstockmods.net/clearart/
)


- craigd - 2010-07-13

I can't work out what I'm doing wrong but just cannot get this to work for me.

I'm using rev 31755 and whenever I run the addon get message "Error, No TVShow find or error getting web page"

I've done a pastebin of the debug log http://pastebin.com/pVSrSssc

only thing I possibly thought was I'm using the mysql shared db rather than local, don't know if this can cause it or if anyone has any other ideas?


- DDM123 - 2010-07-23

1.3 seems to be crashing on some TV show names with spaces in them. I'm running Ubuntu 64bit with the pysqlite files from the .zip from a few pages ago.
Code:
15:01 T:140425018955536 M:749703168  NOTICE: ### Checking 30 TVshow: Heroes  id: 79501
17:15:01 T:140425018955536 M:749703168  NOTICE: ### Logo.png already exist, skiping ...
17:15:01 T:140425018955536 M:749703168  NOTICE: ### Checking 32 TVshow: Good Eats  id: 73067
17:15:01 T:140425018955536 M:749703168  NOTICE: ### Search for a Logo...
17:15:02 T:140425018955536 M:749715456  NOTICE: ### logo: http://www.lockstockmods.net/logos/73067/clearart/GoodEats-73067.png
17:15:02 T:140425018955536 M:749715456  NOTICE: ### download :http://www.lockstockmods.net/logos/73067/clearart/GoodEats-73067.png
17:15:02 T:140425018955536 M:749715456  NOTICE: ### path: /htpc/video/TV/Good Eats/logo.png
17:15:02 T:140425018955536 M:749715456  NOTICE: ### Logo downloaded Successfully !!!
17:15:02 T:140425018955536 M:749715456  NOTICE: ### Checking 35 TVshow: Family Guy  id: tt0182576
17:15:02 T:140425018955536 M:749715456  NOTICE: ### IMDB id found in database(tt0182576), checking for nfo
17:15:02 T:140425018955536 M:749715456  NOTICE: ### nfo file: /htpc/video/TV/Family Guy/tvshow.nfo
17:15:02 T:140425018955536 M:749715456  NOTICE: ### no tvdb id found in: /htpc/video/TV/Family Guy/tvshow.nfo
17:15:02 T:140425018955536 M:749715456    INFO: -->Python script returned the following error<--
17:15:02 T:140425018955536 M:749715456   ERROR: Error Type: exceptions.TypeError
17:15:02 T:140425018955536 M:749715456   ERROR: Error Contents: argument 3 must be unicode or str
17:15:02 T:140425018955536 M:749715456   ERROR: Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.logo-downloader/default.py", line 268, in ?
                                                DIALOG_PROGRESS.update( ratio , "Searching: %s " %  translate_string( TVshow["name"] ) , tvid )
                                            TypeError: argument 3 must be unicode or str
17:15:02 T:140425018955536 M:749715456    INFO: -->End of Python script error report<--
17:15:02 T:140425517463616 M:749715456   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
17:15:02 T:140425517463616 M:749715456   DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
17:15:02 T:140425018955536 M:749715456   DEBUG: xbp_dlopen loading python lib /usr/local/share/xbmc/system/python/python24.zip/collections.so. flags: 2
17:15:02 T:140425018955536 M:749715456   DEBUG: Loading: /home/xbmc/.xbmc/temp/collections.so
17:15:02 T:140425018955536 M:749715456   DEBUG: RegisterExtensionLib, adding collections.so (0x261f910)
17:15:02 T:140425018955536 M:749715456   DEBUG: xbp_dlsym - load symbol initcollections
17:15:02 T:140425018955536 M:749715456    INFO: Python script stopped



- ppic - 2010-07-24

no, it crashes because it does not found the tvdbid in db or in nfo.


- theuni - 2010-08-04

ppic: It would be great if you could submit this to the official repository. That way, skinners can include the script dependency and know that they always have the latest version, without having to update manually. Also, it means that not everyone is shipping it as part of their skin.

TheUni


- ppic - 2010-08-05

yup theuni !

i've been informed by mcborzu for this, i'm actually on holliday and so, don't really have time to work on it , but t's ok for me, i'll adapt it to submit on the official repo Wink and made it available to all skinner.

i'll keep you in touch !


- mcborzu - 2010-08-05

Other than changing icon.png to be 256x256 and changing xbmc.python.script to xbmc.python.library shouldn't anything else to do. Unless you were planning to tweak the script....