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


- feerlessleadr - 2011-06-30

As I am running the nightly builds, is there anyway that I can either use this script or use an external program to download all logos and cleararts?

ppic, I remember that you said that there is something missing in the nightlies that doesn't let this script work with it, but I wasn't sure if a workaround had been discovered yet.


- Fuddster - 2011-06-30

I just got out of a chat with Sraue (The developer of Openelec.tv) where he states:

"[13:59] <@sraue> Fuddster, basically it seems this script must be updated for use with openelec, i am not much a python profi... but for accessing samba shares it needs to translate the path..."

so what i´ve got out of this is, that only the creator or another skilled python coder can update this script, so it is actually functioning properly on OpenELEC.tv based XBMC machines!?!

Or are there any other possible ways to get this to work?


- DJShadow - 2011-07-08

I am having trouble downloading posters, logos, etc. using this script. I believe it has something to do with my files being accessed through SMB. My debug log is giving me this:

ERROR: CWINFileSMB: Unable to open file for writing '\' Error '5

I have write access through windows explorer. Not sure what to do.

Running windows 7 x64 on both machines.

Thanks in advance.

EDIT
BTW, poster d/l works fine when using 'Get Thumb' button.

EDIT
N/M I was having permissions issues with Win 7.


smb paths wrong way? - tommyhome - 2011-07-13

Hi,
I run on windows with pre-eden, the aeon-nox skin, a mysql db and smb paths.

My problem is, that the script runs, finds what it should and returns 0 as result when it finds stuff.

When looking in xbmc.log it seems like it thinks that the paths should be smb://serverip/share/content/a tv series/ but in reallity, paths have slashes the other way, the correct is smb:\\serverip\share\content\a tv series\

is there a more recent version that i might download somewhere that takes care of this issue?


- gordoyuri - 2011-07-13

amet Wrote:to make this script work with external python( any eden-pre build) and smb:// paths the xbmcvfs module should be used. download the file to a local destination then use xbmcvfs.copy('src' , 'dest') to move it to smb:// location

http://passion-xbmc.org/gros_fichiers/XBMC%20Python%20Doc/xbmc_svn/xbmcvfs.html

let me know if you need more info

How i implement this? Can't understand what i have to change and where. Could you give me some info on this? Thanks


- feerlessleadr - 2011-07-13

tommyhome Wrote:Hi,
I run on windows with pre-eden, the aeon-nox skin, a mysql db and smb paths.

My problem is, that the script runs, finds what it should and returns 0 as result when it finds stuff.

When looking in xbmc.log it seems like it thinks that the paths should be smb://serverip/share/content/a tv series/ but in reallity, paths have slashes the other way, the correct is smb:\\serverip\share\content\a tv series\

is there a more recent version that i might download somewhere that takes care of this issue?

apparently this script is broken with pre-eden releases according to ppic.

I have been looking for a way to run this script to no avail. I am searching the web to see if there is an external tool that can download the art, but I haven't found one yet.


- feerlessleadr - 2011-07-14

amet Wrote:to make this script work with external python( any eden-pre build) and smb:// paths the xbmcvfs module should be used. download the file to a local destination then use xbmcvfs.copy('src' , 'dest') to move it to smb:// location

http://passion-xbmc.org/gros_fichiers/XBMC%20Python%20Doc/xbmc_svn/xbmcvfs.html

let me know if you need more info

I'm not sure how to implement this, but for someone who might, I believe the solution is to download the artwork for a show to a local folder, and then copy it to the smb share using the xbmcvfs


- Vengent - 2011-07-18

Any word on an updated version of the script to handle the external python changes?


- Dedi - 2011-07-18

can't use the downloader for my stuff on my samba shared server. waiting for a fix.

pre-eden, aeon nox

Code:
11:45:39 T:5936 M:4294967295   ERROR: Control 1 in window 10099 has been asked to focus, but it can't
11:45:44 T:6640 M:4294967295  NOTICE: -->Python Interpreter Initialized<--
11:45:44 T:6640 M:4294967295  NOTICE: ### Logo Downloader starting ...
11:45:44 T:6640 M:4294967295  NOTICE: ### author: Ppic
11:45:44 T:6640 M:4294967295  NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
11:45:44 T:6640 M:4294967295  NOTICE: ### credits: Team XBMC PASSION, http://passion-xbmc.org/
11:45:44 T:6640 M:4294967295  NOTICE: ### date: 02-03-2010
11:45:44 T:6640 M:4294967295  NOTICE: ### version: 2.3.0
11:45:44 T:6640 M:4294967295  NOTICE: ### DEBUG: True
11:45:44 T:6640 M:4294967295  NOTICE: ### logo downloader initializing...
11:45:44 T:6640 M:4294967295  NOTICE: ### reinit
11:45:44 T:6640 M:4294967295  NOTICE: ['script.logo-downloader', 'mode=solo', 'logo=True', 'clearart=True', 'showthumb=landscape.jpg', 'poster=poster.jpg', 'banner=banner.jpg', 'showname=Breaking Bad']
11:45:44 T:6640 M:4294967295  NOTICE: arg 0: script.logo-downloader
11:45:44 T:6640 M:4294967295  NOTICE: arg 1: mode=solo
11:45:44 T:6640 M:4294967295  NOTICE: arg 2: logo=True
11:45:44 T:6640 M:4294967295  NOTICE: arg 3: clearart=True
11:45:44 T:6640 M:4294967295  NOTICE: arg 4: showthumb=landscape.jpg
11:45:44 T:6640 M:4294967295  NOTICE: arg 5: poster=poster.jpg
11:45:44 T:6640 M:4294967295  NOTICE: arg 6: banner=banner.jpg
11:45:44 T:6640 M:4294967295  NOTICE: arg 7: showname=Breaking Bad
11:45:44 T:6640 M:4294967295  NOTICE: ### Start Solo Mode
11:45:44 T:6640 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="Breaking Bad"
11:45:44 T:6640 M:4294967295  NOTICE: xml dat: <record><field>81189</field><field>smb://DMS/Serien/Breaking Bad/</field></record>
11:45:47 T:6640 M:4294967295  NOTICE: <?xml version="1.0"?>
                                            <fanart show="Breaking Bad"><clearlogos><clearlogo url="http://fanart.tv/fanart/81189/clearlogo/breakingbad-81189.png"/><clearlogo url="http://fanart.tv/fanart/81189/clearlogo/BreakingBad-81189-3.png"/><clearlogo url="http://fanart.tv/fanart/81189/clearlogo/breakingbad-81189-2.png"/></clearlogos><cleararts><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189.png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (4).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (3).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (2).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (1).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (0).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/BreakingBad-81189-7.png"/></cleararts><tvthumbs><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189.jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (8).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (7).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (6).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (5).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (4).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (3).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (2).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (0).jpg"/></tvthumbs><seasonthumbs><seasonthumb url="http://fanart.tv/fanart/81189/seasonthumb/Breaking Bad (2).jpg"/><seasonthumb url="http://fanart.tv/fanart/81189/seasonthumb/Breaking Bad (1).jpg"/><seasonthumb url="http://fanart.tv/fanart/81189/seasonthumb/Breaking Bad (0).jpg"/></seasonthumbs></fanart>
11:45:47 T:6640 M:4294967295  NOTICE: ['http://fanart.tv/fanart/81189/clearart/B_81189.png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (4).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (3).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (2).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (1).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (0).png', 'http://fanart.tv/fanart/81189/clearart/BreakingBad-81189-7.png']
11:45:47 T:6640 M:4294967295   ERROR: C:\Users\dedi\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py:584: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__( self, *args, **kwargs )
11:45:47 T:5936 M:4294967295   ERROR: Control 6 in window 13000 has been asked to focus, but it can't
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/B_81189.png
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/B_81189 (4).png
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/B_81189 (3).png
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/B_81189 (2).png
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/B_81189 (1).png
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/B_81189 (0).png
11:45:47 T:6640 M:4294967295  NOTICE: http://fanart.tv/fanart/81189/clearart/BreakingBad-81189-7.png
11:45:49 T:6640 M:4294967295  NOTICE: 6
11:45:49 T:6640 M:4294967295  NOTICE: 0
11:45:49 T:6640 M:4294967295  NOTICE: ###show name: Breaking Bad
11:45:49 T:6640 M:4294967295  NOTICE: ###mode: solo
11:45:49 T:6640 M:4294967295  NOTICE: ###clearart: True
11:45:49 T:6640 M:4294967295  NOTICE: ###logo: False
11:45:49 T:6640 M:4294967295  NOTICE: ###thumb: False
11:45:49 T:6640 M:4294967295  NOTICE: ###show path: smb://DMS/Serien/Breaking Bad/
11:45:49 T:6640 M:4294967295  NOTICE: ###id: 81189
11:45:49 T:6640 M:4294967295  NOTICE: ###lockstock xml: <?xml version="1.0"?>
                                            <fanart show="Breaking Bad"><clearlogos><clearlogo url="http://fanart.tv/fanart/81189/clearlogo/breakingbad-81189.png"/><clearlogo url="http://fanart.tv/fanart/81189/clearlogo/BreakingBad-81189-3.png"/><clearlogo url="http://fanart.tv/fanart/81189/clearlogo/breakingbad-81189-2.png"/></clearlogos><cleararts><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189.png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (4).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (3).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (2).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (1).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/B_81189 (0).png"/><clearart url="http://fanart.tv/fanart/81189/clearart/BreakingBad-81189-7.png"/></cleararts><tvthumbs><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189.jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (8).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (7).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (6).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (5).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (4).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (3).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (2).jpg"/><tvthumb url="http://fanart.tv/fanart/81189/tvthumb/B_81189 (0).jpg"/></tvthumbs><seasonthumbs><seasonthumb url="http://fanart.tv/fanart/81189/seasonthumb/Breaking Bad (2).jpg"/><seasonthumb url="http://fanart.tv/fanart/81189/seasonthumb/Breaking Bad (1).jpg"/><seasonthumb url="http://fanart.tv/fanart/81189/seasonthumb/Breaking Bad (0).jpg"/></seasonthumbs></fanart>
11:45:49 T:6640 M:4294967295  NOTICE: ###image list: ['http://fanart.tv/fanart/81189/clearart/B_81189.png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (4).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (3).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (2).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (1).png', 'http://fanart.tv/fanart/81189/clearart/B_81189 (0).png', 'http://fanart.tv/fanart/81189/clearart/BreakingBad-81189-7.png']
11:45:49 T:6640 M:4294967295  NOTICE: ###image url: http://fanart.tv/fanart/81189/clearart/B_81189.png
11:45:49 T:6640 M:4294967295  NOTICE: ###filename: clearart.png
11:45:49 T:6640 M:4294967295  NOTICE: ###xbmcstuff_xml: False
11:45:49 T:6640 M:4294967295  NOTICE: ### download :http://fanart.tv/fanart/81189/clearart/B_81189.png
[b]11:45:49 T:6640 M:4294967295  NOTICE: problem with path: smb://DMS/Serien/Breaking Bad/[/b]
11:46:23 T:5936 M:4294967295   ERROR: Control 1 in window 10099 has been asked to focus, but it can't



- solidsatras - 2011-07-18

@Dedi
ppic Wrote:not compatible with eden-pre for smb paths..

be patient, i´m sure ppic will add support for eden at some point


- Dedi - 2011-07-18

As workaround, I just scraped them on the file server directly.

i like these logos Smile


- feerlessleadr - 2011-07-19

Dedi Wrote:As workaround, I just scraped them on the file server directly.

i like these logos Smile

mind sharing how you did that?

I would love to get this going again, even if it is outside xbmc.

::EDIT:: Nevermind, i think you just put xbmc on wherever you store your movies ans scrapped them that way.


- Jimmeh - 2011-07-19

feerlessleadr Wrote:mind sharing how you did that?

I would love to get this going again, even if it is outside xbmc.

::EDIT:: Nevermind, i think you just put xbmc on wherever you store your movies ans scrapped them that way.

I've found two workarounds:

1. Ember Media Manager has an XBMC Stuff plugin which allows you to manually select logos, clearart etc. Not sure if this is still available, since I have maintained my install from before the ember addon service thingy went kaboom.

2. I have also had some success with running a dharma 10.1 install on my windows desktop and running the script from there. What I do is:
  • Export my library from video options on my HTPC.
  • Add the smb shares from my media server to my dharma desktop installation. If it asks to refresh the information, select no and it will use the local art/nfo files rather than rescraping everything from the internet, and therefore be much faster.
  • Run the logo/banner/clearart scripts from within a supported skin (neon has everything for example)
  • The items are saved correctly to my shares, and are accessible by the htpc

Hope that wasn't too painful to understand, since I probably didn't explain it too clearly.


- feerlessleadr - 2011-07-19

Jimmeh Wrote:I've found two workarounds:

1. Ember Media Manager has an XBMC Stuff plugin which allows you to manually select logos, clearart etc. Not sure if this is still available, since I have maintained my install from before the ember addon service thingy went kaboom.

2. I have also had some success with running a dharma 10.1 install on my windows desktop and running the script from there. What I do is:
  • Export my library from video options on my HTPC.
  • Add the smb shares from my media server to my dharma desktop installation. If it asks to refresh the information, select no and it will use the local art/nfo files rather than rescraping everything from the internet, and therefore be much faster.
  • Run the logo/banner/clearart scripts from within a supported skin (neon has everything for example)
  • The items are saved correctly to my shares, and are accessible by the htpc

Hope that wasn't too painful to understand, since I probably didn't explain it too clearly.

Thanks for the explanation!

I'm assuming that your dharma install is on a different machine than your main install? I have an extra laptop that I would be able to use, but didn't want to go through the hassle of setting it up if the xbmc install needs to be on the same machine as my media.


- Jimmeh - 2011-07-19

feerlessleadr Wrote:Thanks for the explanation!

I'm assuming that your dharma install is on a different machine than your main install? I have an extra laptop that I would be able to use, but didn't want to go through the hassle of setting it up if the xbmc install needs to be on the same machine as my media.

Right, it doesn't matter what machine you run it on really, as long as the db is separate and it accesses the same shares.

Any spare machine will do fine, or even a VM would probably work in windowed mode.

Also keep in mind that since each install is using it's own standalone database, adding something to your main XBMC PC will not add new items to your dharma database on your spare laptop. So whenever you want to fire it up to pickup new logos, you will need to run a library update first.

It's not elegant, which is why I am using the Ember plugin instead, but it is a valid workaround if you have no other options.