The branch, eden-pre has been updated
       via  b709c499803bdf2c877c432272f8f269e512a20c (commit)
      from  555cdda010413b6e461d7b60ddb7f41b6e66c63d (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=b709c499803bdf2c877c432272f8f269e512a20c

commit b709c499803bdf2c877c432272f8f269e512a20c
Author: ronie <[email protected]>
Date:   Tue Sep 20 22:07:49 2011 +0200

    [script.logo-downloader] -v3.0.6
    
    several fixes due to json-rpc changes and more...

diff --git a/script.logo-downloader/addon.xml b/script.logo-downloader/addon.xml
index ce3c3bb..f0aa802 100644
--- a/script.logo-downloader/addon.xml
+++ b/script.logo-downloader/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.logo-downloader"
        name="Logo Downloader"
-       version="3.0.3"
+       version="3.0.6"
        provider-name="ppic, ronie">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
diff --git a/script.logo-downloader/changelog.txt 
b/script.logo-downloader/changelog.txt
index ce14c28..e597451 100644
--- a/script.logo-downloader/changelog.txt
+++ b/script.logo-downloader/changelog.txt
@@ -1,3 +1,18 @@
+v3.0.6
+- adjusted to latest json-rpc changes
+- fixed copy image to the right thumbnail cache folder
+- delete cached dds version of image
+- ommit select dialog when searching for only one type of images 
+- show notification instead of ok dialog when image is downloaded
+
+v3.0.5
+- localized some hardcoded strings
+- updated code for v4 of the fanart.tv api
+- added support for characterart
+
+v3.0.4
+- fixed json query when compactoutput was set to false
+
 v3.0.3
 - do not use the xbmc temp dir
 
diff --git a/script.logo-downloader/default.py 
b/script.logo-downloader/default.py
index 6e130bd..3a8caef 100644
--- a/script.logo-downloader/default.py
+++ b/script.logo-downloader/default.py
@@ -31,7 +31,7 @@ def footprints():
     log( "### %s starting ..." % __addonname__ )
     log( "### author: %s" % __author__ )
     log( "### version: %s" % __version__ )
-    
+
 def get_html_source( url , save=False):
     """ fetch the html source """
     class AppURLopener(urllib.FancyURLopener):
@@ -60,6 +60,7 @@ class downloader:
         if not xbmcvfs.exists( xbmc.translatePath( 
'special://profile/addon_data/%s/temp' % __addonid__ ) ):
             os.makedirs( xbmc.translatePath( 
'special://profile/addon_data/%s/temp' % __addonid__ ) )
         self.clearart = False
+        self.characterart = False
         self.logo = False
         self.show_thumb = False
         self.banner = False
@@ -79,11 +80,13 @@ class downloader:
         try: log( "### arg 4: %s" % sys.argv[4] )
         except:   log( "### no arg4" )
         try: log( "arg 5: %s" % sys.argv[5] )
-        except:   log( "### no arg5" ) 
+        except:   log( "### no arg5" )
         try: log( "### arg 6: %s" % sys.argv[6] )
         except:   log( "### no arg6" )
         try: log( "### arg 7: %s" % sys.argv[7] )
-        except:   log( "### no arg7" ) 
+        except:   log( "### no arg7" )
+        try: log( "### arg 8: %s" % sys.argv[8] )
+        except:   log( "### no arg8" )
 
         for item in sys.argv:
             match = re.search("mode=(.*)" , item)
@@ -92,6 +95,10 @@ class downloader:
             if match: 
                 if not match.group(1) == "False": self.clearart = 
match.group(1)
                 else: pass
+            match = re.search("characterart=(.*)" , item)
+            if match: 
+                if not match.group(1) == "False": self.characterart = 
match.group(1)
+                else: pass
             match = re.search("logo=(.*)" , item)
             if match: 
                 if not match.group(1) == "False": self.logo = match.group(1)
@@ -124,13 +131,15 @@ class downloader:
         self.id_verif()
         if self.tvdbid:
             self.type_list = []
-            if self.logo:self.type_list.append ("logo")
-            if self.clearart:self.type_list.append ("clearart")
-            if self.show_thumb:self.type_list.append ("showthumb")
-            if self.banner:self.type_list.append ("banner")
-            if self.poster:self.type_list.append ("poster")
-            
-            if self.choice_type():
+            if self.logo:self.type_list.append (__language__(32128))
+            if self.clearart:self.type_list.append (__language__(32129))
+            if self.characterart:self.type_list.append (__language__(32130))
+            if self.show_thumb:self.type_list.append (__language__(32131))
+            if self.banner:self.type_list.append (__language__(32132))
+            if self.poster:self.type_list.append (__language__(32133))
+            if len(self.type_list) == 1:
+                self.type_list[0] = "True"
+            if ( len(self.type_list) == 1 ) or self.choice_type():
                 self.image_list = False
                 if self.logo:
                     if self.logo == "True": self.filename = "logo.png"
@@ -142,6 +151,11 @@ class downloader:
                     else: self.filename = self.clearart
                     self.get_lockstock_xml()
                     self.search_clearart()
+                elif self.characterart: 
+                    if self.characterart == "True": self.filename = 
"character.png"
+                    else: self.filename = self.characterart
+                    self.get_lockstock_xml()
+                    self.search_characterart()
                 elif self.show_thumb:
                     if self.show_thumb == "True": self.filename = "folder.jpg"
                     else: self.filename = self.show_thumb
@@ -158,11 +172,10 @@ class downloader:
                     self.get_tvdb_xml()
                     self.search_poster()
                 
-                if self.image_list: 
-                    if self.choose_image(): 
+                if self.image_list:
+                    if self.choose_image():
                         self.print_class_var()
-                        if self.download_image(): 
xbmcgui.Dialog().ok(__language__(32103) , __language__(32104) )
-                        else:
+                        if not self.download_image():
                             if self.error == "download":
                                 xbmcgui.Dialog().ok(__language__(32101) , 
__language__(32105) )
                             elif self.error == "copy":
@@ -179,6 +192,8 @@ class downloader:
         self.thumb_download = 0
         self.clearart_found = 0
         self.clearart_download = 0
+        self.characterart_found = 0
+        self.characterart_download = 0
         self.poster_found = 0
         self.poster_download = 0
         self.banner_found = 0
@@ -186,9 +201,10 @@ class downloader:
         self.TV_listing()
         processeditems = 0
 
-        log( "###clearart#%s###" % self.clearart )
-        log( "###logo#%s###" % self.logo )
-        log( "###show_thumb#%s###" % self.show_thumb )
+        log( "### clearart:%s ###" % self.clearart )
+        log( "### characterart:%s ###" % self.characterart )
+        log( "### logo:%s ###" % self.logo )
+        log( "### show_thumb:%s ###" % self.show_thumb )
 
         for currentshow in self.TVlist:
             log( "####################" )
@@ -245,12 +261,30 @@ class downloader:
                                 log( "### clearart downloaded for %s" % 
self.show_name )
                             else:
                                 log( "### failed: clearart for %s" % 
self.show_name )
-                    else: 
+                    else:
                         self.clearart_found = self.clearart_found +1
                         log( "### %s already exist, skipping" % self.filename )
                     self.image_url = False
                     self.filename = False
 
+                if self.characterart:
+                    log( "### Search characterart for %s" % self.show_name )
+                    if self.characterart == "True": self.filename = 
"character.png"
+                    else: self.filename = self.characterart
+                    if not xbmcvfs.exists( os.path.join( self.show_path , 
self.filename ) ):
+                        if self.search_characterart():
+                            log( "### found characterart for %s" % 
self.show_name )
+                            if self.download_image():
+                                self.characterart_download = 
self.characterart_download +1
+                                log( "### characterart downloaded for %s" % 
self.show_name )
+                            else:
+                                log( "### failed: characterart for %s" % 
self.show_name )
+                    else: 
+                        self.characterart_found = self.characterart_found +1
+                        log( "### %s already exist, skipping" % self.filename )
+                    self.image_url = False
+                    self.filename = False
+
                 if self.show_thumb:
                     log( "### Search showthumb for %s" % self.show_name )
                     if self.show_thumb == "True": self.filename = "folder.jpg"
@@ -269,7 +303,7 @@ class downloader:
                     self.image_url = False
                     self.filename = False
 
-                if self.poster or self.banner: 
+                if self.poster or self.banner:
                     log( "### get tvdb xml" )
                     self.get_tvdb_xml()
 
@@ -308,7 +342,7 @@ class downloader:
                         log( "### %s already exist, skipping" % self.filename )
                     self.image_url = False
                     self.filename = False
-                    
+
                 self.reinit()
             except:
                 log( "### error with: %s" % currentshow )
@@ -321,27 +355,32 @@ class downloader:
         log( "### thumb download = %s" % self.thumb_download )
         log( "### clearart found = %s" % self.clearart_found )
         log( "### clearart download = %s" % self.clearart_download )
+        log( "### characterart found = %s" % self.characterart_found )
+        log( "### characterart download = %s" % self.characterart_download )
         log( "### banner found = %s" % self.banner_found )
         log( "### banner download = %s" % self.banner_download )
         log( "### poster found = %s" % self.poster_found )
         log( "### poster download = %s" % self.poster_download )
         msg = "DOWNLOADED: "
         msg2 ="FOUND: "
-        if self.logo: 
-            msg = msg + "logo: %s " % self.logo_download
-            msg2 = msg2 + "logo: %s " % self.logo_found
-        if self.clearart: 
-            msg = msg + "clearart: %s " % self.clearart_download
-            msg2 = msg2 + "clearart: %s " % self.clearart_found
-        if self.show_thumb: 
-            msg = msg + "thumb: %s " % self.thumb_download
-            msg2 = msg2 + "thumb: %s " % self.thumb_found
-        if self.poster: 
-            msg = msg + "poster: %s " % self.poster_download
-            msg2 = msg2 + "poster: %s " % self.poster_found
-        if self.banner: 
-            msg = msg + "banner: %s " % self.banner_download
-            msg2 = msg2 + "banner: %s " % self.banner_found
+        if self.logo:
+            msg = msg + __language__(32128) + ": %s " % self.logo_download
+            msg2 = msg2 + __language__(32128) + ": %s " % self.logo_found
+        if self.clearart:
+            msg = msg + __language__(32129) + ": %s " % self.clearart_download
+            msg2 = msg2 + __language__(32129) + ": %s " % self.clearart_found
+        if self.characterart:
+            msg = msg + __language__(32130) + ": %s " % 
self.characterart_download
+            msg2 = msg2 + __language__(32130) + ": %s " % 
self.characterart_found
+        if self.show_thumb:
+            msg = msg + __language__(32131) + ": %s " % self.thumb_download
+            msg2 = msg2 + __language__(32131) + ": %s " % self.thumb_found
+        if self.banner:
+            msg = msg + __language__(32132) + ": %s " % self.banner_download
+            msg2 = msg2 + __language__(32132) + ": %s " % self.banner_found
+        if self.poster:
+            msg = msg + __language__(32133) + ": %s " % self.poster_download
+            msg2 = msg2 + __language__(32133) + ": %s " % self.poster_found
 
         xbmcgui.Dialog().ok(__language__(32111) + ' ' + str( len(self.TVlist) 
) + ' ' + __language__(32112) , msg , msg2 )
         xbmcgui.Dialog().ok(__language__(32113), __language__(32114) , 
__language__(32115).upper() )
@@ -356,45 +395,47 @@ class downloader:
         self.tvdb_xml = False
 
     def print_class_var(self):
-        try: log( "###show name: %s" % self.show_name )
-        except: log( "###show name:" )
-        try: log( "###mode: %s" % self.mode )
-        except: log( "###mode:" )
-        try: log( "###clearart: %s" % self.clearart )
-        except: log( "###clearart:" )
-        try: log( "###logo: %s" % self.logo )
-        except: log( "###logo:" )
-        try: log( "###thumb: %s" % self.show_thumb )
-        except: log( "###thumb:" )
-        try: log( "###show path: %s" % self.show_path )
-        except: log( "###show path:" )
-        try: log( "###id: %s" % self.tvdbid )
-        except: log( "###id:" )
-        try: log( "###lockstock xml: %s" % self.lockstock_xml )
-        except: log( "###lockstock xml:" )
-        try: log( "###image list: %s" % self.image_list )
-        except: log( "###image list:" )
-        try: log( "###image url: %s" % self.image_url )
-        except: log( "###image url:" )
-        try: log( "###filename: %s" % self.filename )
-        except: log( "###filename:" )
-        try: log( "###xbmcstuff_xml: %s" % self.xbmcstuff_xml )
-        except: log( "###xbmcstuff_xml:" )
+        try: log( "### show name: %s" % self.show_name )
+        except: log( "### show name:" )
+        try: log( "### mode: %s" % self.mode )
+        except: log( "### mode:" )
+        try: log( "### clearart: %s" % self.clearart )
+        except: log( "### clearart:" )
+        try: log( "### characterart: %s" % self.characterart )
+        except: log( "### characterart:" )
+        try: log( "### logo: %s" % self.logo )
+        except: log( "### logo:" )
+        try: log( "### thumb: %s" % self.show_thumb )
+        except: log( "### thumb:" )
+        try: log( "### show path: %s" % self.show_path )
+        except: log( "### show path:" )
+        try: log( "### id: %s" % self.tvdbid )
+        except: log( "### id:" )
+        try: log( "### lockstock xml: %s" % self.lockstock_xml )
+        except: log( "### lockstock xml:" )
+        try: log( "### image list: %s" % self.image_list )
+        except: log( "### image list:" )
+        try: log( "### image url: %s" % self.image_url )
+        except: log( "### image url:" )
+        try: log( "### filename: %s" % self.filename )
+        except: log( "### filename:" )
+        try: log( "### xbmcstuff_xml: %s" % self.xbmcstuff_xml )
+        except: log( "### xbmcstuff_xml:" )
 
     def TV_listing(self):
         # json statement for tv shows
-        json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetTVShows", "params": {"fields": ["file", "imdbnumber"], "sort": 
{ "method": "label" } }, "id": 1}')
+        json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetTVShows", "params": {"properties": ["file", "imdbnumber"], 
"sort": { "method": "label" } }, "id": 1}')
         json_response = re.compile( "{(.*?)}", re.DOTALL ).findall(json_query)
         self.TVlist = []
         for tvshowitem in json_response:
             log( "### tv show: %s" % tvshowitem )
-            findtvshowname = re.search( '"label":"(.*?)","', tvshowitem )
+            findtvshowname = re.search( '"label": ?"(.*?)",["\n]', tvshowitem )
             if findtvshowname:
                 tvshowname = ( findtvshowname.group(1) )
-                findpath = re.search( '"file":"(.*?)","', tvshowitem )
+                findpath = re.search( '"file": ?"(.*?)",["\n]', tvshowitem )
                 if findpath:
                     path = (findpath.group(1))
-                    findimdbnumber = re.search( '"imdbnumber":"(.*?)","', 
tvshowitem )
+                    findimdbnumber = re.search( '"imdbnumber": 
?"(.*?)",["\n]', tvshowitem )
                     if findimdbnumber:
                         imdbnumber = (findimdbnumber.group(1))
                     else:
@@ -406,20 +447,20 @@ class downloader:
                     self.TVlist.append(TVshow)
 
     def get_tvid_path( self ):
-        json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetTVShows", "params": {"fields": ["file", "imdbnumber"], "sort": 
{ "method": "label" } }, "id": 1}')
+        json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetTVShows", "params": {"properties": ["file", "imdbnumber"], 
"sort": { "method": "label" } }, "id": 1}')
         json_response = re.compile( "{(.*?)}", re.DOTALL ).findall(json_query)
         for tvshowitem in json_response:
-            findtvshowname = re.search( '"label":"(.*?)","', tvshowitem )
+            findtvshowname = re.search( '"label": ?"(.*?)",["\n]', tvshowitem )
             if findtvshowname:
                 tvshowname = (findtvshowname.group(1))
                 tvshowmatch = re.search( '.*' + self.show_name + '.*', 
tvshowname, re.I )
                 if tvshowmatch:
                     log( "### tv show: %s" % tvshowitem )
-                    findpath = re.search( '"file":"(.*?)","', tvshowitem )
+                    findpath = re.search( '"file": ?"(.*?)",["\n]', tvshowitem 
)
                     if findpath:
                         path = (findpath.group(1))
                         self.show_path = path
-                        findimdbnumber = re.search( '"imdbnumber":"(.*?)","', 
tvshowitem )
+                        findimdbnumber = re.search( '"imdbnumber": 
?"(.*?)",["\n]', tvshowitem )
                         if findimdbnumber:
                             imdbnumber = (findimdbnumber.group(1))
                             self.tvdbid = imdbnumber
@@ -451,7 +492,7 @@ class downloader:
             else:
                 nfo_read = file(nfo, "r" ).read()
             log( "nfo_read" )
-        else: log( "###tvshow.nfo not found !" )
+        else: log( "### tvshow.nfo not found !" )
         tvdb_id = re.findall( "<tvdbid>(\d{1,10})</tvdbid>", nfo_read ) or 
re.findall( "<id>(\d{1,10})</id>", nfo_read )
         if tvdb_id: 
             log( "### tvdb id: %s" % tvdb_id[0] )
@@ -461,7 +502,7 @@ class downloader:
             return False
 
     def get_lockstock_xml(self):
-        self.lockstock_xml = get_html_source( 
"http://fanart.tv/api/fanart.php?id="; + str( self.tvdbid ) )
+        self.lockstock_xml = get_html_source( 
"http://fanart.tv/api/fanart.php?v=4&id="; + str( self.tvdbid ) )
         log( "### lockstock: %s" % self.lockstock_xml )
 
 #     def get_xbmcstuff_xml(self):
@@ -471,36 +512,48 @@ class downloader:
         self.tvdb_xml = get_html_source 
("http://www.thetvdb.com/api/F90E687D789D7F7C/series/%s/banners.xml"; % str( 
self.tvdbid ) )
 
     def search_logo( self ):
-        match = re.findall("""<clearlogo url="(.*?)"/>""" , str( 
self.lockstock_xml) )
+        match = re.findall("""<clearlogo .*? url="(.*?)"/>""" , str( 
self.lockstock_xml) )
         if match: 
             if self.mode == "solo" : self.image_list = match
             if self.mode == "bulk" : self.image_url = match[0]
             return True
-        else: 
+        else:
             log( "### No logo found !" )
             if self.mode == "solo": xbmcgui.Dialog().ok(__language__(32116) , 
__language__(32117) )
             self.image_list = False
             return False
 
     def search_clearart( self ):
-        match = re.findall("""<clearart url="(.*?)"/>""" , str( 
self.lockstock_xml) )
+        match = re.findall("""<clearart .*? url="(.*?)"/>""" , str( 
self.lockstock_xml) )
         if match: 
             if self.mode == "solo" : self.image_list = match
             if self.mode == "bulk" : self.image_url = match[0]
             return True
-        else: 
+        else:
             log( "### No clearart found !" )
             if self.mode == "solo": xbmcgui.Dialog().ok(__language__(32116) , 
__language__(32118) )
             self.image_list = False
             return False
 
+    def search_characterart( self ):
+        match = re.findall("""<characterart .*? url="(.*?)"/>""" , str( 
self.lockstock_xml) )
+        if match: 
+            if self.mode == "solo" : self.image_list = match
+            if self.mode == "bulk" : self.image_url = match[0]
+            return True
+        else:
+            log( "### No characterart found !" )
+            if self.mode == "solo": xbmcgui.Dialog().ok(__language__(32116) , 
__language__(32127) )
+            self.image_list = False
+            return False
+
     def search_show_thumb( self ):
-        match = re.findall("""<tvthumb url="(.*?)"/>""" , str( 
self.lockstock_xml) )
+        match = re.findall("""<tvthumb .*? url="(.*?)"/>""" , str( 
self.lockstock_xml) )
         if match: 
             if self.mode == "solo" : self.image_list = match
             if self.mode == "bulk" : self.image_url = match[0]
             return True
-        else: 
+        else:
             log( "### No show thumb found !" )
             if self.mode == "solo": xbmcgui.Dialog().ok(__language__(32116) , 
__language__(32119) )
             self.image_list = False
@@ -515,7 +568,7 @@ class downloader:
                     self.image_list.append("http://www.thetvdb.com/banners/"; + 
i)
             if self.mode == "bulk" : self.image_url = 
"http://www.thetvdb.com/banners/"; + match[0]
             return True
-            
+
     def search_banner( self ):
         match = 
re.findall("<BannerPath>(.*?)</BannerPath>\s+<BannerType>series</BannerType>" , 
self.tvdb_xml)
         if match: 
@@ -533,11 +586,12 @@ class downloader:
             xbmcgui.Dialog().ok(__language__(32121) , __language__(32122) )
             return False
         else:
-            if self.type_list[select] == "logo" : self.clearart = 
self.show_thumb = self.banner = self.poster = False
-            elif self.type_list[select] == "showthumb" : self.clearart = 
self.logo = self.banner = self.poster = False
-            elif self.type_list[select] == "clearart" : self.logo = 
self.show_thumb = self.banner = self.poster = False
-            elif self.type_list[select] == "banner" : self.logo = 
self.show_thumb = self.clearart = self.poster = False
-            elif self.type_list[select] == "poster" : self.logo = 
self.show_thumb = self.banner = self.clearart = False
+            if self.type_list[select] == __language__(32128) : self.clearart = 
self.show_thumb = self.banner = self.poster = self.characterart = False
+            elif self.type_list[select] == __language__(32129) : self.logo = 
self.show_thumb = self.banner = self.poster = self.characterart = False
+            elif self.type_list[select] == __language__(32130) : self.logo = 
self.show_thumb = self.banner = self.poster = self.clearart = False
+            elif self.type_list[select] == __language__(32131) : self.clearart 
= self.logo = self.banner = self.poster = self.characterart = False
+            elif self.type_list[select] == __language__(32132) : self.logo = 
self.show_thumb = self.clearart = self.poster = self.characterart = False
+            elif self.type_list[select] == __language__(32133) : self.logo = 
self.show_thumb = self.banner = self.clearart = self.characterart = False
             return True
 
     def choose_image(self):
@@ -557,14 +611,16 @@ class downloader:
 
     def erase_current_cache(self):
         try: 
-            
-            if not self.filename == "folder.jpg": cached_thumb = 
thumbnails.get_cached_video_thumb( os.path.join( self.show_path , self.filename 
)).replace( "\\Video" , "").replace("tbn" , "png")
+            if not self.filename == "folder.jpg": cached_thumb = 
thumbnails.get_cached_video_thumb( os.path.join( self.show_path , self.filename 
)).replace( "/Video" , "").replace("tbn" , "png")
             else: cached_thumb = 
thumbnails.get_cached_video_thumb(self.show_path)
             log( "### cache %s" % cached_thumb )
+            if xbmcvfs.exists( cached_thumb.replace("png" , 
"dds").replace("jpg" , "dds") ):
+                xbmcvfs.delete( cached_thumb.replace("png" , 
"dds").replace("jpg" , "dds") )
             copy = xbmcvfs.copy( os.path.join( self.show_path , self.filename 
) , cached_thumb )
             if copy:
+                xbmc.executebuiltin( 'XBMC.ReloadSkin()' )
+                xbmc.executebuiltin( "Notification(" + __language__(32103) + 
"," + __language__(32104) + ")" )
                 pass
-#                xbmc.executebuiltin( 'XBMC.ReloadSkin()' )
             else:
                 log( "### failed to copy to cached thumb" )
         except :
@@ -651,9 +707,9 @@ class MainGui( xbmcgui.WindowXMLDialog ):
             Notice: onClick not onControl
             Notice: it gives the ID of the control not the control object
         """
-        #action sur la liste
+        #List actions
         if controlID == 6 or controlID == 3: 
-            #Renvoie l'item selectionne
+            #Return selected item
             num = self.img_list.getSelectedPosition()
             log( "### position: %s" % num )
             self.selected_url = self.img_list.getSelectedItem().getLabel2()
diff --git a/script.logo-downloader/readme.txt 
b/script.logo-downloader/readme.txt
index 4b8a821..9da69fd 100644
--- a/script.logo-downloader/readme.txt
+++ b/script.logo-downloader/readme.txt
@@ -8,14 +8,15 @@ for skinners: HOW TO INTEGRATE THIS SCRIPT IN YOUR SKIN
   #   
   # for solo mode (usually used from videoinfodialog) , 
$INFO[ListItem.TVShowTitle] is required. you have to add a button whit the 
following action:
   # exemple to launch:
-  # 
<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>
+  # 
<onclick>XBMC.RunScript(script.logo-downloader,mode=solo,logo=True,clearart=True,characterart=True,showthumb=landscape.jpg,poster=poster.jpg,banner=banner.jpg,showname=$INFO[ListItem.TVShowTitle])</onclick>
   # 
   # for bulk mode, no particular info needed, just need a button to launch 
from where you want.
   # exemple to launch:
-  # 
<onclick>XBMC.RunScript(script.logo-downloader,mode=bulk,clearart=True,logo=True,showthumb=landscape.jpg,poster=poster.jpg,banner=banner.jpg)</onclick>
+  # 
<onclick>XBMC.RunScript(script.logo-downloader,mode=bulk,clearart=True,characterart=True,logo=True,showthumb=landscape.jpg,poster=poster.jpg,banner=banner.jpg)</onclick>
   # 
   # When type is set to "True" (example: showthumb=True), here are default 
images name:
   # clearart: clearart.png
+  # characterart: character.png
   # logo: logo.png
   # showthumb/poster/banner: folder.jpg
   # 
diff --git a/script.logo-downloader/resources/language/English/strings.xml 
b/script.logo-downloader/resources/language/English/strings.xml
index f9553ac..e3deedb 100644
--- a/script.logo-downloader/resources/language/English/strings.xml
+++ b/script.logo-downloader/resources/language/English/strings.xml
@@ -26,5 +26,12 @@
        <string id="32124">Downloading:</string>
        <string id="32125">Getting info...</string>
        <string id="32126">Error copying file</string>
+       <string id="32127">No characterart found!</string>
+       <string id="32128">logo</string>
+       <string id="32129">clearart</string>
+       <string id="32130">characterart</string>
+       <string id="32131">showthumb</string>
+       <string id="32132">banner</string>
+       <string id="32133">poster</string>
 </strings>
 

-----------------------------------------------------------------------

Summary of changes:
 script.logo-downloader/addon.xml                   |    2 +-
 script.logo-downloader/changelog.txt               |   15 ++
 script.logo-downloader/default.py                  |  228 ++++++++++++--------
 script.logo-downloader/readme.txt                  |    5 +-
 .../resources/language/English/strings.xml         |    7 +
 5 files changed, 168 insertions(+), 89 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to