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.
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 Wrote: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.
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>