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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: [RELEASE] Watchlist script (was 'Adding Plex's 'On Deck' feature to XBMC') (/showthread.php?tid=113702)



- `Black - 2012-01-04

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


- Martijn - 2012-01-04

`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

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


- Martijn - 2012-01-04

`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

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


- Martijn - 2012-01-04

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

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

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

`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

Thanks!


- ferent - 2012-01-08

ronie Wrote:updated repo to v0.1.8

cheers!

Sorry, which repo?


- ronie - 2012-01-08

ferent Wrote:Sorry, which repo?

the xbmc.org one.


- Martijn - 2012-01-08

ferent Wrote:Sorry, which repo?

XBMC repo. so will be installed automatic with skins that support this or update your current version


- LAW-Mastermind - 2012-01-09

Is it already in Pre-Eden repo? If so, where? Can´t find it.


- ronie - 2012-01-09

LAW-Mastermind Wrote:Is it already in Pre-Eden repo? If so, where? Can´t find it.

http://mirrors.xbmc.org/addons/eden-pre/script.watchlist/