![]() |
|
[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) |
- ronie - 2011-12-16 17:15 Jeroen Wrote:Anyone know how I could use a graphical rating inside the watchlist's container? 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 17:16 v0.1.7 is available in the addon repo now. - Jeroen - 2011-12-16 17:50 ronie Wrote:it's missing '.png' at the end. try with this: paste error, the .png was in place 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
- Jeroen - 2011-12-17 13:41 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>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 13:51 Jeroen Wrote:I found this kind of weird. I added an overlay for items that are resumable: 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. - pecinko - 2011-12-17 15:28 Jeroen Wrote:I found this kind of weird. I added an overlay for items that are resumable: Stupid question, have not tried it myself: since $INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)] has only False or True value, wouldn't it be easier to use just <visible>$INFO[Window(Home).Property(WatchList_Episode.1.IsResumable)]</visible> - `Black - 2011-12-17 18:40 Probably wouldn't work because $INFO is a string, not a bool value. - mortstar - 2011-12-19 03:39 I'm using the Watchlist script within the ReFocus skin. If I start an episode via the watchlist it is not reported by the trakt plugin to the trakt website. However, the same episode played from the normal library view will report as playing correctly. I believe this also happened with the, now defunct, recentlyadded script. Here's a debug lof of me playing an episode; first from the library view where trakt connects properly and then playing the same episode from the watchlist which is not reported. http://pastebin.com/6dYZz82Q - ronie - 2011-12-19 03:47 mortstar Wrote:If I start an episode via the watchlist it is not reported by the trakt plugin to the trakt website. best ask in the trakt support thread. i have now clue how the trakt addon interacts with xbmc. if there's something i need to add the watchlist in order to make it work, just let me know. - othrayte - 2011-12-19 07:47 mortstar Wrote:I'm using the Watchlist script within the ReFocus skin. If I start an episode via the watchlist it is not reported by the trakt plugin to the trakt website. However, the same episode played from the normal library view will report as playing correctly. I believe this also happened with the, now defunct, recentlyadded script. ronie Wrote:best ask in the trakt support thread. Hey, I'm one of the developers for Trakt Utilities (TU) to make watchlist work with TU there is one main thing to change. At the end I have a link to a modified default.py (based on v0.1.7) that includes the required changes to watchlist and I have also included the required changes a skinner would have to make. The main problem was the way each item would get played, I tried out the script with the ReFocus skin and noticed that it was playing the item by directory, this is the problem, the json notification system that is in XBMC doesn't provided (or probably bother looking up) the extra info to identify what is playing; it just mentions that a movie is playing (even when it is a tv show). As TU relies on this notification system any lack of information is ignored. To get around this all that is needed is to initiate the playback differently, one good way is to do it over jsonrpc from a python script. My patches provided the extra methods for requesting the playback of a movie or episode and add the identifiers that should be used to identify the item being requested. Here is the modified default.py. Here is a required skin changes: Code: <onclick>blah blah blah</onclick>Code: <onclick>RunScript(script.watchlist,episodeid=$INFO[Window(Home).Property(WatchList_Episode.%d.EpisodeID)])</onclick> |