Script hangs on onControl - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Script hangs on onControl (/showthread.php?tid=26564) |
Script hangs on onControl - mighty_bombero - 2007-05-24 Hi there, perhaps someone can point out my mistake. My script hangs when i enter onControl. Menu doesn't work anymore and I have to restart the xbox. I'm sure it's something trivial ... Mighty Bombero Here's the code: Code: import xbmc, xbmcgui, re, urllib2 - Nuka1195 - 2007-05-24 Quote:if page: url_list = self.parsePage(page) are you sure page exists? If it doesn't it will error at the for loop. just a headsup. Your problem is Code: self.message("You selected : " + item) item is not a string, it's a listitem. Code: self.message("You selected : " + item.getLabel()) - mighty_bombero - 2007-05-24 Nuka1195 Wrote:are you sure page exists? If it doesn't it will error at the for loop. just a headsup. Yes page exists and properly populates my ControlList. Nuka1195 Wrote:Your problem is Fixed that but it wasn't causing the problem. Thanks anyway ... - solexalex - 2007-05-24 did you fixed that as well : you did : Code: xbmc.Player().play(item.getLabel) try this : Code: xbmc.Player().play(item.getLabel()) - mighty_bombero - 2007-05-25 solexalex Wrote:did you fixed that as well : I figure I was way too tired. That did it indeed. Thanks! Mighty Bombero |