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)



- Zelgadis87 - 2011-12-10

Hello!
Sorry to interfere, but I get the following error on initialization:
Code:
21:20:58 T:7508   ERROR: Error Type: <type 'exceptions.KeyError'>
21:20:58 T:7508   ERROR: Error Contents: ('result',)
21:20:58 T:7508   ERROR: Traceback (most recent call last):
                          File "D:\Users\ZeL\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 357, in <module>
                            Main()
                          File "D:\Users\ZeL\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 27, in __init__
                            self._fetch_info()
                          File "D:\Users\ZeL\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 50, in _fetch_info
                            self._fetch_movies()
                          File "D:\Users\ZeL\AppData\Roaming\XBMC\addons\script.watchlist\default.py", line 73, in _fetch_movies
                            if json_response['result'].has_key('movies'):
                        KeyError: ('result',)

Printing the contents of json_response shows:
Code:
{u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}

This is using the latest Windows nightly build (10/12/2011). Tested with Aeon Nox and Xeebo Nightly.


- ronie - 2011-12-11

Zelgadis87 Wrote:Hello!
Sorry to interfere, but I get the following error on initialization:

which version of watchlist are you using?

if you get this with v0.1.7, full Debug Log on pastebin please.


Watchlist startup error debug log - Silverlock - 2011-12-11

Full debug log: http://pastebin.com/Zzi2duvu
The same thing also happens in Ubuntu with the latest nightly. The skin is Xeebo nightly. If I immediately cursor down to the ongoing TV shows list and click on it, the script runs without error (and from thereon as well). At first blush it looks like something's not quite up and running when the watchlist script is run at startup.


- ronie - 2011-12-11

Silverlock Wrote:Full debug log: http://pastebin.com/KhktbT5q
The same thing also happens in Ubuntu with the latest nightly. The skin is Xeebo nightly. If I immediately cursor down to the ongoing TV shows list and click on it, the script runs without error (and from thereon as well). At first blush it looks like something's not quite up and running when the watchlist script is run at startup.

thanx!

looks like it's related to having 'update library at startup' enabled.
mind disabling those for videos and music and check if the issue goes away?


- Silverlock - 2011-12-11

Same result as far as I can see, but I've attached the debug log with no library updates on startup; maybe there's something else in there that will help.


- Zelgadis87 - 2011-12-11

I was about to include that I had 'update library on startup' enabled in the post above, but then I tried to disable it and it kept failing. Now however, for whatever reason, it works fine if it's disabled and fails if enabled. I'm sure I tested it in both states earlier tho- :/.

Anyway, full log:
http://pastebin.com/jNT5HUcU


- ronie - 2011-12-11

i've no clue why this is happening...

created a ticket for it: http://trac.xbmc.org/ticket/12279


- BigNoid - 2011-12-11

Album thumbs are not displaying for me. Is it just me or anybody else experiencing this also?

I'm using the code from readme:
Code:
<thumb>$INFO[Window(Home).Property(WatchList_Album.1.Thumb)]</thumb>



- `Black - 2011-12-14

I didn't read the whole thread but shouldn't the script suggest only the first unwatched episode from a show? E.g. script suggests E14 and E15 from Supernatural season 6 and I've only watched the first 3 episodes yet. So I would expect that it recommends episode 4.

Edit: Ok, I take everything back. ^^... did just a quick test yesterday in XeeBo and had the wrong settings. Smile


- Jeroen - 2011-12-16

Anyone know how I could use a graphical rating inside the watchlist's container?

I tried
Code:
<texture>$INFO[ListItem.Property(Rating),rating/nf-,]</texture>

the images are in media/rating
the nf- is to distinguish non focused and focused items. Image names are like nf-rating0.png, etc

But no dice unfortunately. Should the images be named differently?

edit: oh and I have set the Rating property in the item list.


- ronie - 2011-12-16

Jeroen Wrote:Anyone know how I could use a graphical rating inside the watchlist's container?

I tried
Code:
<texture>$INFO[ListItem.Property(Rating),rating/nf-,]</texture>

it's missing '.png' at the end. try with this:
Code:
<texture>$INFO[ListItem.Property(Rating),rating/nf-,[b].png[/b]]</texture>

also keep in mind, for movies and episodes ratings are returned like this: '8.3',
so you'll need an awful lot of images if you want to match them all.
maybe you could use some IntegerGreatherThan comparison on the rating value.


- ronie - 2011-12-16

v0.1.7 is available in the addon repo now.


- Jeroen - 2011-12-16

ronie Wrote:it's missing '.png' at the end. try with this:
Code:
<texture>$INFO[ListItem.Property(Rating),rating/nf-,[b].png[/b]]</texture>

also keep in mind, for movies and episodes ratings are returned like this: '8.3',
so you'll need an awful lot of images if you want to match them all.
maybe you could use some IntegerGreatherThan comparison on the rating value.

paste error, the .png was in place Smile But yes, it had to do with the n.n rating. As it works in the library with two digits I assumed it would work here too.
Made a IntegerGreaterThan variable for it now, cheers Smile


- Jeroen - 2011-12-17

I found this kind of weird. I added an overlay for items that are resumable:

PHP Code:
<property name="Progress">$INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)]</property>
...
<
texture>overlays/OverlayResumable.png</texture>
<
visible>StringCompare(ListItem.Property(Progress),True)</visible

Which doesn't work. I replaced the StringCompare with a SubString and that does work. Wouldn't a StringCompare be more appropriate as it is an exact match?


- ronie - 2011-12-17

Jeroen Wrote:I found this kind of weird. I added an overlay for items that are resumable:

PHP Code:
<property name="Progress">$INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)]</property>
...
<
texture>overlays/OverlayResumable.png</texture>
<
visible>StringCompare(ListItem.Property(Progress),True)</visible

Which doesn't work. I replaced the StringCompare with a SubString and that does work. Wouldn't a StringCompare be more appropriate as it is an exact match?

i'm glad you brought this up, as i always forget about it.
i'm having the same issue with just about every script.

it could be some kind of bug in xbmc i think.