2004-12-01, 06:46
hi.
was looking at tvnu.py to add some features but decided that it was easier to rewrite from scratch instead. the script is working well, if you're very lucky or reboot and run a hundred times or so.
when i press the 'a' button on a entry in the list the oncontrol method is called and i do the comparation if the control equals the list with channels i have. the xbmc.log will give me this error message:
01-12-2004 05:20:49 info q:\scripts\autoexec.py:212: runtimewarning: tp_compare didn't return -1 or -2 for exception
this problem can be trigged in the original tvnu.py too when moving around in the menues.
if one is very lucky and don't get that error message in the log everything works like it's supposed to.
i talked to darkie on irc last night and he told me something about python had already crashed when it reached that line of code (tvnu.py:214 or tvnu2.py:204). since this information is only available to ppl who have the developer version of xbmc (why?!?!?!?) it doesn't help me really much.
i tried to remove code until it worked but to no success. today i rewrote the parsing code not to use sgmlparser but instead a bunch of regexps, this also crashes.
the script using sgmlparser can be found at http://www.nittionio.nu/tvnu.py.txt (sgmlparser)
http://www.nittionio.nu/tvnu2.py.txt (regexp)
does't matter what version of the script, same problem
load it and press the 'a' button on a entry. you will most likly not be able to exit the script unless everything works perfectly. if this is the case, reboot and see it freeze .
(this script is under development is not for mere mortals, when this bug has been resolved a final version will be made pretty soon)
was looking at tvnu.py to add some features but decided that it was easier to rewrite from scratch instead. the script is working well, if you're very lucky or reboot and run a hundred times or so.
when i press the 'a' button on a entry in the list the oncontrol method is called and i do the comparation if the control equals the list with channels i have. the xbmc.log will give me this error message:
01-12-2004 05:20:49 info q:\scripts\autoexec.py:212: runtimewarning: tp_compare didn't return -1 or -2 for exception
this problem can be trigged in the original tvnu.py too when moving around in the menues.
if one is very lucky and don't get that error message in the log everything works like it's supposed to.
i talked to darkie on irc last night and he told me something about python had already crashed when it reached that line of code (tvnu.py:214 or tvnu2.py:204). since this information is only available to ppl who have the developer version of xbmc (why?!?!?!?) it doesn't help me really much.
i tried to remove code until it worked but to no success. today i rewrote the parsing code not to use sgmlparser but instead a bunch of regexps, this also crashes.
the script using sgmlparser can be found at http://www.nittionio.nu/tvnu.py.txt (sgmlparser)
http://www.nittionio.nu/tvnu2.py.txt (regexp)
does't matter what version of the script, same problem
load it and press the 'a' button on a entry. you will most likly not be able to exit the script unless everything works perfectly. if this is the case, reboot and see it freeze .
(this script is under development is not for mere mortals, when this bug has been resolved a final version will be made pretty soon)