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


- ppic - 2011-01-24

solo dl for tvtunes also planned Wink


- castortray - 2011-01-26

Hi,

I have little issue:
In DialogVideoInfo.xml in the skin.customizableconfluence/720p folder and adding this:

Code:
<control type="button" id="19">
    <description>Get Logo</description>
    <include>ButtonInfoDialogsCommonValues</include>
    <onclick>RunScript("Path to the script",$INFO[ListItem.FileNameAndPath])</onclick>
    <label>Logo</label>
    <onclick>XBMC.RunScript(script.logo-downloader,mode=solo,logo=True,clearart=True,showthumb=landscape.jpg,poster=poster.jpg,banner=banner.jpg,showname=$INFO[ListItem.TVShowTitle])</onclick>
</control>

Image

Image

When I choose "logo" I can see window (with something to choose) behind, I don't see it Sad after press Enter, logo downloaded correctly

Image

Logs:

Code:
13:57:13 T:4784 M:1168154624  NOTICE: -->Python Interpreter Initialized<--
13:57:14 T:4784 M:1166630912  NOTICE: ### Logo Downloader starting ...
13:57:14 T:4784 M:1166630912  NOTICE: ### author: Ppic
13:57:14 T:4784 M:1166630912  NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
13:57:14 T:4784 M:1166630912  NOTICE: ### credits: Team XBMC PASSION, http://passion-xbmc.org/
13:57:14 T:4784 M:1166630912  NOTICE: ### date: 20-10-2010
13:57:14 T:4784 M:1166630912  NOTICE: ### version: 2.2.0
13:57:14 T:4784 M:1166630912  NOTICE: ### DEBUG: True
13:57:14 T:4784 M:1166630912  NOTICE: ### logo downloader initializing...
13:57:14 T:4784 M:1166630912  NOTICE: ### reinit
13:57:14 T:4784 M:1166630912  NOTICE: ['script.logo-downloader', 'mode=solo', 'logo=True', 'clearart=True', 'showthumb=landscape.jpg', 'poster=poster.jpg', 'banner=banner.jpg', 'showname=Californication']
13:57:14 T:4784 M:1166630912  NOTICE: arg 0: script.logo-downloader
13:57:14 T:4784 M:1166630912  NOTICE: arg 1: mode=solo
13:57:14 T:4784 M:1166630912  NOTICE: arg 2: logo=True
13:57:14 T:4784 M:1166630912  NOTICE: arg 3: clearart=True
13:57:14 T:4784 M:1166630912  NOTICE: arg 4: showthumb=landscape.jpg
13:57:14 T:4784 M:1166630912  NOTICE: arg 5: poster=poster.jpg
13:57:14 T:4784 M:1166630912  NOTICE: arg 6: banner=banner.jpg
13:57:14 T:4784 M:1166630912  NOTICE: arg 7: showname=Californication
13:57:14 T:4784 M:1166618624  NOTICE: ### Start Solo Mode
13:57:14 T:4784 M:1166991360  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="Californication"
13:57:14 T:4784 M:1166991360  NOTICE: xml dat: <record><field>80349</field><field>smb://MYBOOKWORLD/Media/Video/3. TV Series/Californication/</field></record>
13:57:15 T:5264 M:1166372864   ERROR: CRemoteControl::Connect - failed to connect
13:57:44 T:4784 M:1169018880   ERROR: Previous line repeats 5 times.
13:57:44 T:4784 M:1169018880  NOTICE: <?xml version="1.0"?>
                                            <logos show="Californication"><logo url="http://fanart.tv/fanart/80349/clearlogo/californication-80349.png"/><logo url="http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png"/></logos>
13:57:44 T:4784 M:1169018880  NOTICE: ['http://fanart.tv/fanart/80349/clearlogo/californication-80349.png', 'http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png']
13:57:44 T:4784 M:1168441344  NOTICE: http://fanart.tv/fanart/80349/clearlogo/californication-80349.png
13:57:44 T:4784 M:1168437248  NOTICE: http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png
13:57:46 T:5264 M:1165357056   ERROR: CRemoteControl::Connect - failed to connect
13:59:23 T:4784 M:1174183936   ERROR: Previous line repeats 19 times.
13:59:23 T:4784 M:1174183936  NOTICE: 6
13:59:23 T:4784 M:1174179840  NOTICE: 1
13:59:23 T:4784 M:1174183936  NOTICE: ###show name: Californication
13:59:23 T:4784 M:1174183936  NOTICE: ###mode: solo
13:59:23 T:4784 M:1174183936  NOTICE: ###clearart: False
13:59:23 T:4784 M:1174183936  NOTICE: ###logo: True
13:59:23 T:4784 M:1174183936  NOTICE: ###thumb: False
13:59:23 T:4784 M:1174183936  NOTICE: ###show path: smb://MYBOOKWORLD/Media/Video/3. TV Series/Californication/
13:59:23 T:4784 M:1174183936  NOTICE: ###id: 80349
13:59:23 T:4784 M:1174183936  NOTICE: ###lockstock xml: <?xml version="1.0"?>
                                            <logos show="Californication"><logo url="http://fanart.tv/fanart/80349/clearlogo/californication-80349.png"/><logo url="http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png"/></logos>
13:59:23 T:4784 M:1174183936  NOTICE: ###image list: ['http://fanart.tv/fanart/80349/clearlogo/californication-80349.png', 'http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png']
13:59:23 T:4784 M:1174183936  NOTICE: ###image url: http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png
13:59:23 T:4784 M:1174183936  NOTICE: ###filename: logo.png
13:59:23 T:4784 M:1174183936  NOTICE: ###xbmcstuff_xml: False
13:59:23 T:4784 M:1174179840  NOTICE: ### download :http://fanart.tv/fanart/80349/clearlogo/californication-80349-2.png
13:59:23 T:4784 M:1174409216  NOTICE: 0
13:59:23 T:4784 M:1174401024  NOTICE: 32
13:59:23 T:4784 M:1174401024  NOTICE: 65
13:59:23 T:4784 M:1174413312  NOTICE: 97
13:59:23 T:4784 M:1174413312  NOTICE: 130
13:59:23 T:4784 M:1174446080  NOTICE: Date: Wed, 26 Jan 2011 12:59:25 GMT

                                            Server: Apache/2

                                            Last-Modified: Wed, 08 Dec 2010 17:57:30 GMT

                                            Accept-Ranges: bytes

                                            Content-Length: 25196

                                            X-Powered-By: W3 Total Cache/0.9.1.3

                                            Connection: close

                                            Content-Type: image/png
13:59:23 T:4784 M:1174446080  NOTICE: ### cache C:\Users\castortray\AppData\Roaming\XBMC\userdata\Thumbnails\b\b58a0d14.png
13:59:24 T:5876 M:1175371776 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture MenuItemNF.png
13:59:24 T:5876 M:1175371776 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture MenuItemFO.png
13:59:24 T:5876 M:1175371776 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture black-back2.png
13:59:24 T:5876 M:1181904896 WARNING: Skin has invalid include: StudioFlaggingConditions
13:59:24 T:5876 M:1181904896 WARNING: Previous line repeats 3 times.
13:59:24 T:5876 M:1181904896 WARNING: Skin has invalid include: VideoMPAAFlaggingConditionsUS
13:59:26 T:5264 M:1178427392   ERROR: CRemoteControl::Connect - failed to connect
13:59:27 T:4784 M:1175121920  NOTICE: ### logo downloader exiting...

But when I add

Code:
<onclick>XBMC.RunScript(script.logo-downloader,mode=bulk,clearart=True,logo=True,showthumb=landscape.jpg,poster=poster.jpg,banner=banner.jpg)</onclick>
everything is ok. But I really want to choose

Please help me

Many thanks for any tips


- mcborzu - 2011-01-26

Add this bolded line at top of DialogSelect.xml:

<window type="dialog" id="2000">
<defaultcontrol always="true">3</defaultcontrol>
<zorder>3</zorder>


- castortray - 2011-01-26

mcborzu Wrote:Add this bolded line at top of DialogSelect.xml:

<window type="dialog" id="2000">
<defaultcontrol always="true">3</defaultcontrol>
<zorder>3</zorder>


it's working, perfect !!

many thanks for your prompt answers


- kroem - 2011-01-28

I'm probably doing something wrong, but the addon is not installing when I choose "Install from Zip", can someone sheed some light on this for me?

Thank you...


- ppic - 2011-01-28

why do you install it by zip ?
it's automatically downloaded when skin is using it.


- kroem - 2011-01-28

Ok, must've misunderstood something... So do I need custom skin to get it working? I have shade now I think...

(sorry for being such a noob...haha)


- ppic - 2011-01-28

shade is compatible Wink


- kroem - 2011-01-28

I know... but how do I get cleararts? Sad Sad Sad


- ppic - 2011-01-28

?!?


- Fuddster - 2011-01-29

hey all...

i´ve got the newest night (svn) skin today and am on the latest xbmc rev. ...

now i wanted to dl the logos for my shows with the script inside settings, but after searching through my shows, the script shows me the total found and dl`ed logos with "0"...

after that i tried it in season level of one show and with "TV-Info" and "get Logo" and there i can see the logo, clearART etc. for my show but after selecting the one i want, it gives me "download failed" error!

the Orig. Night skin gives me the same errors!!!

What can i do about it!?!?! besides manual download from LockstockmodsHuh

Thank you all i.A.

Fuddster


- mcborzu - 2011-01-29

Fuddster Wrote:hey all...

i´ve got the newest night (svn) skin today and am on the latest xbmc rev. ...

now i wanted to dl the logos for my shows with the script inside settings, but after searching through my shows, the script shows me the total found and dl`ed logos with "0"...

after that i tried it in season level of one show and with "TV-Info" and "get Logo" and there i can see the logo, clearART etc. for my show but after selecting the one i want, it gives me "download failed" error!

the Orig. Night skin gives me the same errors!!!

What can i do about it!?!?! besides manual download from LockstockmodsHuh

Thank you all i.A.

Fuddster

ppic will probably need a debug log...


- ppic - 2011-01-29

for sure yes !


- darkscout - 2011-01-31

Code:
15:01:03 T:2853153648 M:794451968   DEBUG: ------ Window Init (DialogProgress.xml) ------
15:01:03 T:2853153648 M:794451968   DEBUG: Alloc resources: 1.17ms (0.00 ms skin load)
15:01:03 T:2853153648 M:794451968  NOTICE: ### download :http://fanart.tv/fanart/75397/clearlogo/mynameisearl-75397.png
15:01:03 T:3077842816 M:794451968   DEBUG: ADDON: cpluff: 'Could not return information about unknown plug-in script.cinema.experience.'
15:01:03 T:2853153648 M:794456064   DEBUG: Previous line repeats 43 times.
15:01:03 T:2853153648 M:794456064 WARNING: FileSmb::OpenForWrite() called with overwriting enabled! - smb://server%2elocal/TV/My%20Name%20Is%20Earl/logo%2epng
15:01:03 T:2853153648 M:794456064   ERROR: FileSmb->Open: Unable to open file : 'smb://server%2elocal/TV/My%20Name%20Is%20Earl/logo%2epng'
                                            unix_err:'d' error : 'Permission denied'
15:01:03 T:2853153648 M:794456064  NOTICE: ### Image download Failed !!! (download_logo)
15:01:03 T:2853153648 M:794456064  NOTICE: Traceback (most recent call last):
15:01:03 T:2853153648 M:794456064  NOTICE:   File "/home/xbmc/.xbmc/addons/script.logo-downloader/default.py", line 569, in download_image
15:01:03 T:2853153648 M:794456064  NOTICE:     fp , h = urllib.urlretrieve( self.image_url.replace(" ", "%20") , destination , _report_hook )
15:01:03 T:2853153648 M:794456064  NOTICE:   File "/usr/local/lib/xbmc/system/python/python24.zip/urllib.py", line 89, in urlretrieve
15:01:03 T:2853153648 M:794456064  NOTICE:     return _urlopener.retrieve(url, filename, reporthook, data)
15:01:03 T:2853153648 M:794456064  NOTICE:   File "/usr/local/lib/xbmc/system/python/python24.zip/urllib.py", line 225, in retrieve
15:01:03 T:2853153648 M:794456064  NOTICE:     tfp = open(filename, 'wb')
15:01:03 T:2853153648 M:794456064  NOTICE: IOError: [Errno 0] Error: 'smb://server.local/TV/My Name Is Earl/logo.png'
15:01:03 T:3077842816 M:794456064   DEBUG: ADDON: cpluff: 'Could not return information about unknown plug-in script.cinema.experience.'

That's where it's failing me on some of my TV shows.


- ppic - 2011-01-31

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

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