2010-09-05, 17:25
Nice 1, must have addon No probs with WinXP-Beta1.. Cheers, nice work..
Steveb Wrote:Nice 1, must have addon No probs with WinXP-Beta1.. Cheers, nice work..
20:12:00 T:2959880192 M:2593615872 INFO: -->Python script returned the following error<--
20:12:00 T:2959880192 M:2593615872 ERROR: Error Type: exceptions.IndexError
20:12:00 T:2959880192 M:2593615872 ERROR: Error Contents: list index out of range
20:12:00 T:2959880192 M:2593615872 ERROR: Traceback (most recent call last):
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/default.py", line 54, in ?
if os.path.isfile(xbmc.translatePath("special://profile/Thumbnails/Video/Fanart/" + getCrc(row[0] + row[1]) + ".tbn")):
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/default.py", line 24, in getCrc
crc = hex(g(filename.lower()))
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/crcmod.py", line 403, in crcfun
return fun(data, crc, table)
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/_crcfunpy.py", line 67, in _crc32
crc = table[ord(x) ^ (int(crc>>24) & 0xFF)] ^ ((crc << 8) & 0xFFFFFF00L)
IndexError: list index out of range
20:12:00 T:2959880192 M:2593615872 INFO: -->End of Python script error report<--
Smenus Wrote:Anyway, I seem to be having the same issue as a few other guys, below is the crash-log from the script.
Code:20:12:00 T:2959880192 M:2593615872 INFO: -->Python script returned the following error<--
20:12:00 T:2959880192 M:2593615872 ERROR: Error Type: exceptions.IndexError
20:12:00 T:2959880192 M:2593615872 ERROR: Error Contents: list index out of range
20:12:00 T:2959880192 M:2593615872 ERROR: Traceback (most recent call last):
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/default.py", line 54, in ?
if os.path.isfile(xbmc.translatePath("special://profile/Thumbnails/Video/Fanart/" + getCrc(row[0] + row[1]) + ".tbn")):
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/default.py", line 24, in getCrc
crc = hex(g(filename.lower()))
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/crcmod.py", line 403, in crcfun
return fun(data, crc, table)
File "/Users/sean/Library/Application Support/XBMC/addons/script.video-fanart-splitter/_crcfunpy.py", line 67, in _crc32
crc = table[ord(x) ^ (int(crc>>24) & 0xFF)] ^ ((crc << 8) & 0xFFFFFF00L)
IndexError: list index out of range
20:12:00 T:2959880192 M:2593615872 INFO: -->End of Python script error report<--
for row in db_cursor:
try:
if os.path.isfile(xbmc.translatePath("special://profile/Thumbnails/Video/Fanart/" + getCrc(row[0] + row[1]) + ".tbn")):
moviesadded += 1
shutil.copyfile(xbmc.translatePath("special://profile/Thumbnails/Video/Fanart/" + getCrc(row[0] + row[1]) + ".tbn"), xbmc.translatePath(addon_work_folder + "/Movies/" + getCrc(row[0] + row[1]) + ".tbn"))
except IndexError:
pass
for row in db_cursor:
try:
if os.path.isfile(xbmc.translatePath("special://profile/Thumbnails/Video/Fanart/" + getCrc(row[0]) + ".tbn")):
tvadded += 1
shutil.copyfile(xbmc.translatePath("special://profile/Thumbnails/Video/Fanart/" + getCrc(row[0]) + ".tbn"), xbmc.translatePath(addon_work_folder + "/TV/" + getCrc(row[0]) + ".tbn"))
except IndexError:
pass
import xbmc, time
time.sleep(5)
xbmc.executescript('special://[b]home[/b]//addons//script.video-fanart-splitter//default.py')
pseudoheld Wrote:how do i go about adding this in dharma?
i put it in my addons folder and called it script.video.fanart.splitter but how can i now launch this from xbmc dharma?
please help!