2009-07-20, 23:39
berland Wrote:I got this one with the latest zip-file from ViktorV as well, my previous patch will solve that (you get 'tuple index out of range' error in the log).
Code has changed, so my workaround for 'tuple index out of range' now reads:
Code:
diff --git a/NRK_API/xbmcplugin_program.py b/NRK_API/xbmcplugin_program.py
index 41bb18f..b38d744 100644
--- a/NRK_API/xbmcplugin_program.py
+++ b/NRK_API/xbmcplugin_program.py
@@ -266,9 +266,9 @@ class Main(WebTV):
self.settings['cache_files'] = xsetting('cache_files') == 'true'
self.settings['fetch_path'] = xsetting('fetch_path') == 'true'
self.settings['connection_speed'] = ( 600, 1000, 1800,
- )[int(xsetting("connection_speed"))]
+ )[2]
self.settings['cache_time'] = ( 999, 1, 2, 12, 24,
- )[int(xsetting("cache_time"))]
+ )[2]
# - EOM -