2011-04-14, 21:04
On a second note, I stated that everything works fine with your fix to the logo downloader script, but I'm afraid I was a bit quick. After editing the default.py and replacing the mentioned lines with your code, I just get a script failed message. Excerpt from debug log:
"invalid syntax"? I don't get it.
Code:
21:11:51 T:2440 M:947699712 NOTICE: -->Python Interpreter Initialized<--
21:11:51 T:2440 M:947699712 DEBUG: XBPyThread::Process - The source file to load is C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py
21:11:51 T:2440 M:947699712 DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.logo-downloader;C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files (x86)\XBMC\addons\script.module.pil\lib;C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.module.danishaddons\;C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmcbin/system/python/python24.zip;special://xbmc/system/python\DLLs;special://xbmc/system/python\lib;special://xbmc/system/python\lib\plat-win;special://xbmc/system/python\lib\lib-tk;C:\Program Files (x86)\XBMC
21:11:51 T:2440 M:947699712 DEBUG: XBPyThread::Process - Entering source directory C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.logo-downloader
21:11:51 T:2440 M:947707904 INFO: -->Python script returned the following error<--
21:11:51 T:2440 M:947707904 ERROR: Error Type: exceptions.SyntaxError
21:11:51 T:2440 M:947736576 ERROR: Error Contents: ('invalid syntax', ('C:\\Users\\Gunnar\\AppData\\Roaming\\XBMC\\addons\\script.logo-downloader\\default.py', 248, 4, ' if self.clearart or self.show_thumb and not self.lockstock_xml: \n'))
21:11:51 T:2440 M:947556352 ERROR: File "C:\Users\Gunnar\AppData\Roaming\XBMC\addons\script.logo-downloader\default.py", line 248
if self.clearart or self.show_thumb and not self.lockstock_xml:
^
SyntaxError: invalid syntax
21:11:51 T:2440 M:947556352 INFO: -->End of Python script error report<--
"invalid syntax"? I don't get it.