2011-04-20, 16:50
Just had a look at your source, I'm assuming it's this bit:
If I'm reading that right, it says if you are in solo mode (I assume thats when you are looking for a specific show and using the dialog to choose which logo you want) set image_list to all the results, but if you are in bulk mode (so finding images automatically, not asking for user input) use the first match, so any changes to the naming scheme shouldn't affect the script at all
Code:
def search_logo( self ):
match = re.findall("""<clearlogo url="(.*?)"/>""" , 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:
print "### No logo found !"
if self.mode == "solo": xbmcgui.Dialog().ok("Not Found" , "No logo found!" )
self.image_list = False
return False
If I'm reading that right, it says if you are in solo mode (I assume thats when you are looking for a specific show and using the dialog to choose which logo you want) set image_list to all the results, but if you are in bulk mode (so finding images automatically, not asking for user input) use the first match, so any changes to the naming scheme shouldn't affect the script at all