XBMC Community Forum
[RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC') - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: [RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC') (/showthread.php?tid=113702)



- `Black - 2012-01-04 17:52

Yes that's for unfinished movies. I've commited it to svn, should be on the repo soon.


- Martijn - 2012-01-04 18:01

`Black Wrote:Yes that's for unfinished movies. I've commited it to svn, should be on the repo soon.

Without the notification i hope Wink


- `Black - 2012-01-04 18:16

No with but thanks for reminding, now it's removed. Big Grin Big Grin


- Martijn - 2012-01-04 18:47

`Black Wrote:No with but thanks for reminding, now it's removed. Big Grin Big Grin

You would have got some complaints about that i guess Big Grin


- Hitcher - 2012-01-04 19:31

Just an idea but the notification could be useful in the future for testing purposes by skinners/users.


- Martijn - 2012-01-04 19:54

Hitcher Wrote:Just an idea but the notification could be useful in the future for testing purposes by skinners/users.

Maybe just out comment the notification.
PHP Code:
xbmc.executebuiltin('Notification(script.watchlist,updating...,4000)'

Or make it something like this. No need for add-on settings panel i think.
PHP Code:
debugnotify=False  #set True for debugging

if debugnotify:
    
xbmc.executebuiltin('Notification(script.watchlist,updating...,4000)'



- Anthirian - 2012-01-05 12:48

Hi, I have recently updated to Eden beta 1 and I am using the Aeon Nox skin. It runs on Windows 7 SP1 x86, and as soon as XBMC starts, I see a notification that script.watchlist has failed. This first started after the upgrade to Eden, and updating from 0.1.7 to 0.1.8 hasn't fixed the problem. I checked the log and apparently there are no movies in result, which leads to a KeyError. Below is the error from the log.

Code:
11:36:09 T:3900   DEBUG: script.watchlist: script version 0.1.8 started
11:36:09 T:3900   DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["resume", "genre", "studio", "tagline", "runtime", "fanart", "thumbnail", "file", "plot", "plotoutline", "year", "lastplayed", "rating"]}, "id": 1}
11:36:09 T:3900   DEBUG: JSONRPC: Calling videolibrary.getmovies
11:36:09 T:3900    INFO: -->Python script returned the following error<--
11:36:09 T:3900   ERROR: Error Type: <type 'exceptions.KeyError'>
11:36:09 T:3900   ERROR: Error Contents: ('result',)
11:36:09 T:3900   ERROR: Traceback (most recent call last):

File "C:\Users\Me\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 413, in <module>
  Main()
File "C:\Users\Me\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 27, in __init__
  self._fetch_info()
File "C:\Users\Me\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 50, in _fetch_info
  self._fetch_movies()
File "C:\Users\Me\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 72, in _fetch_movies
    if json_response['result'].has_key('movies'):
KeyError: ('result',)

11:36:09 T:3900    INFO: -->End of Python script error report<--
11:36:09 T:3900    INFO: Python script stopped

I hope this helps to fix the problem in a future release.

Thanks in advance,
Anthirian


- Martijn - 2012-01-05 14:01

Anthirian Wrote:Hi, I have recently updated to Eden beta 1 and I am using the Aeon Nox skin. It runs on Windows 7 SP1 x86, and as soon as XBMC starts, I see a notification that script.watchlist has failed. This first started after the upgrade to Eden, and updating from 0.1.7 to 0.1.8 hasn't fixed the problem. I checked the log and apparently there are no movies in result, which leads to a KeyError. Below is the error from the log.

I hope this helps to fix the problem in a future release.

Thanks in advance,
Anthirian

Think this is the known problems that JSON isn't initialized yet when script is exicuted. Should already be fixed for beta2


- ronie - 2012-01-07 18:49

`Black Wrote:Yes that's for unfinished movies. I've commited it to svn, should be on the repo soon.

updated repo to v0.1.8

cheers!


- `Black - 2012-01-07 19:09

Thanks!