"script.watchlist failed" on every entry to home screen - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179) +----- Forum: XeeBo (https://forum.kodi.tv/forumdisplay.php?fid=140) +----- Thread: "script.watchlist failed" on every entry to home screen (/showthread.php?tid=125424) |
"script.watchlist failed" on every entry to home screen - lkraav - 2012-03-13 I'm seeing this in logs: Code: 20:14:53 T:2844781424 INFO: -->Python script returned the following error<-- Running xbmc-pvr-odk68 build from 14 days ago. Who is the culprit here, Xeebo or watchlist? RE: "script.watchlist failed" on every entry to home screen - Martijn - 2012-03-13 Wacthlist. Can you check what version of watchlists you have and post here including full Debug Log RE: "script.watchlist failed" on every entry to home screen - petpetpet - 2012-05-13 Code: def _fetch_tvshows( self ): The 'episodes' variable is only created inside the if json_response['result'].has_key('episodes'): binding, while it's being referenced in the for loop later on in the function. Im not terribly familiar with python's variable binding scope, but I am quite sure that if the JSON response doesn't have a key called 'episodes' then this function is going to break when it gets to the for loop. This can be syntactically fixed by simply putting episodes = [] near the top of the function, however I'm not sure if that's a valid use case. RE: "script.watchlist failed" on every entry to home screen - Martijn - 2012-05-13 and if your JSON request doesn't have any episodes that means your library is empty. On the other hand it shouldn't create any failure so perhaps best to catch those errors. Never had any problem with this so far RE: "script.watchlist failed" on every entry to home screen - petpetpet - 2012-05-13 right, so it probably wasn't tested against a fresh install with an empty TV Show library. Re: RE: "script.watchlist failed" on every entry to home screen - Martijn - 2012-05-13 (2012-05-13, 12:32)petpetpet Wrote: right, so it probably wasn't tested against a fresh install with an empty TV Show library. Nope Will get that looked at. RE: "script.watchlist failed" on every entry to home screen - ronie - 2012-05-13 (2012-05-13, 11:48)petpetpet Wrote: The 'episodes' variable is only created inside the cheer mate, i'll fix that right away :-) though technically speaking, if you don't have any episodes, you won't have any tv shows either, so you'll never get to the for loop, i think? either way, it won't hurt to define an empty episodes list at the start. RE: "script.watchlist failed" on every entry to home screen - petpetpet - 2012-05-13 Not sure. I got the error when I upgraded from 11.0 stable to the latest nightly this morning. There appears to either be something wrong with that nightly, or something wrong with the way I upgraded because it seems to be unable to query my episodes from the DB (so my tv shows show up as empty) even though it can clearly find the files and downloads the artwork etc for them. Therefore, I didn't really have an empty fresh install. So it may well be the case that this function doesn't get called at all with an empty library, but it looks to me like it would. Regardless, it's usually a bad idea to put the first declaration of a variable inside a conditional binding if it being used outside of that binding. RE: "script.watchlist failed" on every entry to home screen - Chris! - 2012-10-22 Sorry to thread resurrect but i'm having trouble since upgrading to openelec 2.0 I'm using the latest xeebo in hitcher's repository and get the "watchlist.script" failed. I'm sure it's something simple that i've done but I can't figure it out, can someone help? debug log: http://pastebin.com/vZ8BEgra Thanks Chris! RE: "script.watchlist failed" on every entry to home screen - Martijn - 2012-10-22 (2012-10-22, 21:29)Chris! Wrote: Sorry to thread resurrect but i'm having trouble since upgrading to openelec 2.0 That's because you couldn't read. You installed 12.0.1 which isn't for Eden *which was clearly stated) Remove the script from the Addons folder and install the correct one http://mirrors.xbmc.org/addons/eden/script.watchlist/ RE: "script.watchlist failed" on every entry to home screen - Chris! - 2012-10-22 Sorry, when I re-installed xeebo from the repo watchlist didn't work. Then I couldn't find the new watch list script (probably more stupidity on my part) so I used the one I had from before - then forgot where I got that from. All makes sense now, thanks for pointing me to the right script. I don't always do the cleverest of things. |