home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
[6.0.3] Trakt for MediaPortal [2020-01-01]
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ltfearme" data-source="post: 1117227" data-attributes="member: 52219"><p>In the next version im caching all user data to disk when syncing with trakt i.e. I save to disk your complete watched history, collection, ratings and watchlist. These are now stripped from each of the individual API calls such that requests are much faster and can be cached server side. The other major benefits of the plugin now caching this data is that I can now add overlays to all areas of trakt, this was pretty inconsistent with the v1 API as some methods did not return user data so I could not create a watched,library,rating or watchlist overlay on a poster in some areas. I can also now accurately tell if a season or series is watched.</p><p></p><p>Another major benefit of local caching is that it allows me to publish this data to the skin when browsing external plugins, now you can have a 10-point rating in MovingPictures and not suffer the rounding loss down to 5. I will implement that shortly after release so skins can optionally use that instead of the one provided by the plugin(s).</p><p></p><p>A quick note about Unwatched syncing, its been a bit of a hot topic for some users. In v1 there was an API to get back your unwatched episodes and movies, in v2 there is no such feature from the API. To overcome this, I make use of the cached watched history, this is compared against any new watched history from online when doing a sync. If the watched history has items in the previous local cache but does not exist in the latest online sync then I remove the watched history for that item. It's not a perfect solution but should work for most until I have time to improve it.</p><p></p><p><strong>WARNING</strong>: unwatching something now removes your complete history for that item, not like before where it will still appear watched on the website but unwatched on the API. This is probably more intuitive for most people now, but people that are use to the old method should know that their play counts will be lost when doing this. Be particularly careful when unwatching something from external plugins (the plugin hooks into these events)....you might not want to delete your 100 times played on SpongeBob 1x01 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />. They do plan a re-watch API further down the track which would prevent this behaviour.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1117227, member: 52219"] In the next version im caching all user data to disk when syncing with trakt i.e. I save to disk your complete watched history, collection, ratings and watchlist. These are now stripped from each of the individual API calls such that requests are much faster and can be cached server side. The other major benefits of the plugin now caching this data is that I can now add overlays to all areas of trakt, this was pretty inconsistent with the v1 API as some methods did not return user data so I could not create a watched,library,rating or watchlist overlay on a poster in some areas. I can also now accurately tell if a season or series is watched. Another major benefit of local caching is that it allows me to publish this data to the skin when browsing external plugins, now you can have a 10-point rating in MovingPictures and not suffer the rounding loss down to 5. I will implement that shortly after release so skins can optionally use that instead of the one provided by the plugin(s). A quick note about Unwatched syncing, its been a bit of a hot topic for some users. In v1 there was an API to get back your unwatched episodes and movies, in v2 there is no such feature from the API. To overcome this, I make use of the cached watched history, this is compared against any new watched history from online when doing a sync. If the watched history has items in the previous local cache but does not exist in the latest online sync then I remove the watched history for that item. It's not a perfect solution but should work for most until I have time to improve it. [B]WARNING[/B]: unwatching something now removes your complete history for that item, not like before where it will still appear watched on the website but unwatched on the API. This is probably more intuitive for most people now, but people that are use to the old method should know that their play counts will be lost when doing this. Be particularly careful when unwatching something from external plugins (the plugin hooks into these events)....you might not want to delete your 100 times played on SpongeBob 1x01 :). They do plan a re-watch API further down the track which would prevent this behaviour. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
[6.0.3] Trakt for MediaPortal [2020-01-01]
Contact us
RSS
Top
Bottom