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 2
Plugin Development
Trakt for MP2
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: 1069084" data-attributes="member: 52219"><p>I think you mean "seen", "check in" is used to say you're watching something now like scrobble e.g. you check in to a movie at the cinema from your mobile app. I don't think you need to implement checkin's unless you want people to manually enter what they want to checkin to, hopefully you can do everything for the user automatically. Maybe the only place where it would be required is from TVGUIDE where metadata might not be the best.</p><p></p><p>When sending "seen" state to trakt, it does not set the playcount online, Playcount is incremented online when you scrobble something (if you delete it online, then you loose it online). As you can see the two methods for syncing seen do not have playcount field:</p><p>* <a href="http://trakt.tv/api-docs/movie-seen" target="_blank">http://trakt.tv/api-docs/movie-seen</a></p><p>* <a href="http://trakt.tv/api-docs/show-episode-seen" target="_blank">http://trakt.tv/api-docs/show-episode-seen</a></p><p></p><p>In the next version of the trakt API, it will allow you to send multiple play dates per movie and episode so that will effectively allow you to send the playcount from client to trakt. </p><p></p><p>The movie seen sync on a 2000 movies collection will take about 10secs (maybe less), it depends if movies are already available on trakt. You could batch the sync into 500 movies per group. For episode syncing, the current trakt API only supports sync for 1 tvshow at a time (with an array of episodes), in MP1 sync we put a delay of 2secs per show to sync (but you could probably get rid of that). There shouldn't be any noticeable time to sync shows/episodes, so for 200 shows (10000 episodes) maybe estimate 2secs per show i.e. 400 secs.</p><p></p><p>The next time you sync, you can first pull what trakt already has seen or in your collection and only sync the difference. Alternatively there is the activity api which allows for better incremental sync's. Getting back your complete data from trakt for seen,watched doesn't take long, I usually see 4secs for all about 2000+ movies. There is activity methods you can use instead for incremental retrieval e.g. only get back what has changed in the last day. I prefer to be more thorough and just get back everything so nothing is missed.</p><p></p><p>When getting your current online state (watched, playcount etc) you can set that locally if you want. For movies you can use the following method to get collected, watched, playcount state etc:</p><p><a href="http://trakt.tv/api-docs/user-library-movies-all" target="_blank">http://trakt.tv/api-docs/user-library-movies-all</a></p><p></p><p>For episodes, you need to make a few calls, one for watched and one for collected (neither have playcount):</p><p>* <a href="http://trakt.tv/api-docs/user-library-shows-watched" target="_blank">http://trakt.tv/api-docs/user-library-shows-watched</a></p><p>* <a href="http://trakt.tv/api-docs/user-library-shows-collection" target="_blank">http://trakt.tv/api-docs/user-library-shows-collection</a></p><p></p><p>If you wanted to sync episode playcount back to client then you would need to make an episode detail method call which would be expensive as it would be per episode:</p><p><a href="http://trakt.tv/api-docs/show-episode-summary" target="_blank">http://trakt.tv/api-docs/show-episode-summary</a></p><p></p><p>There might be another method available for episode playcounts (not sure), I dont sync playcounts to client in MP1 yet, only let trakt increment it based on how many times you scrobble. Nothing stopping you though <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>For ratings sync to client we use the following methods in MP1 to get current ratings:</p><p>* <a href="http://trakt.tv/api-docs/user-ratings-shows" target="_blank">http://trakt.tv/api-docs/user-ratings-shows</a></p><p>* <a href="http://trakt.tv/api-docs/user-ratings-movies" target="_blank">http://trakt.tv/api-docs/user-ratings-movies</a></p><p>* <a href="http://trakt.tv/api-docs/user-ratings-episodes" target="_blank">http://trakt.tv/api-docs/user-ratings-episodes</a></p><p></p><p>and to send ratings:</p><p>* <a href="http://trakt.tv/api-docs/rate-episodes" target="_blank">http://trakt.tv/api-docs/rate-episodes</a></p><p>* <a href="http://trakt.tv/api-docs/rate-movies" target="_blank">http://trakt.tv/api-docs/rate-movies</a></p><p>* <a href="http://trakt.tv/api-docs/rate-shows" target="_blank">http://trakt.tv/api-docs/rate-shows</a></p><p></p><p>Again, you can work out the difference of what to send if persisting ratings locally.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1069084, member: 52219"] I think you mean "seen", "check in" is used to say you're watching something now like scrobble e.g. you check in to a movie at the cinema from your mobile app. I don't think you need to implement checkin's unless you want people to manually enter what they want to checkin to, hopefully you can do everything for the user automatically. Maybe the only place where it would be required is from TVGUIDE where metadata might not be the best. When sending "seen" state to trakt, it does not set the playcount online, Playcount is incremented online when you scrobble something (if you delete it online, then you loose it online). As you can see the two methods for syncing seen do not have playcount field: * [url]http://trakt.tv/api-docs/movie-seen[/url] * [url]http://trakt.tv/api-docs/show-episode-seen[/url] In the next version of the trakt API, it will allow you to send multiple play dates per movie and episode so that will effectively allow you to send the playcount from client to trakt. The movie seen sync on a 2000 movies collection will take about 10secs (maybe less), it depends if movies are already available on trakt. You could batch the sync into 500 movies per group. For episode syncing, the current trakt API only supports sync for 1 tvshow at a time (with an array of episodes), in MP1 sync we put a delay of 2secs per show to sync (but you could probably get rid of that). There shouldn't be any noticeable time to sync shows/episodes, so for 200 shows (10000 episodes) maybe estimate 2secs per show i.e. 400 secs. The next time you sync, you can first pull what trakt already has seen or in your collection and only sync the difference. Alternatively there is the activity api which allows for better incremental sync's. Getting back your complete data from trakt for seen,watched doesn't take long, I usually see 4secs for all about 2000+ movies. There is activity methods you can use instead for incremental retrieval e.g. only get back what has changed in the last day. I prefer to be more thorough and just get back everything so nothing is missed. When getting your current online state (watched, playcount etc) you can set that locally if you want. For movies you can use the following method to get collected, watched, playcount state etc: [url]http://trakt.tv/api-docs/user-library-movies-all[/url] For episodes, you need to make a few calls, one for watched and one for collected (neither have playcount): * [url]http://trakt.tv/api-docs/user-library-shows-watched[/url] * [url]http://trakt.tv/api-docs/user-library-shows-collection[/url] If you wanted to sync episode playcount back to client then you would need to make an episode detail method call which would be expensive as it would be per episode: [url]http://trakt.tv/api-docs/show-episode-summary[/url] There might be another method available for episode playcounts (not sure), I dont sync playcounts to client in MP1 yet, only let trakt increment it based on how many times you scrobble. Nothing stopping you though ;) For ratings sync to client we use the following methods in MP1 to get current ratings: * [url]http://trakt.tv/api-docs/user-ratings-shows[/url] * [url]http://trakt.tv/api-docs/user-ratings-movies[/url] * [url]http://trakt.tv/api-docs/user-ratings-episodes[/url] and to send ratings: * [url]http://trakt.tv/api-docs/rate-episodes[/url] * [url]http://trakt.tv/api-docs/rate-movies[/url] * [url]http://trakt.tv/api-docs/rate-shows[/url] Again, you can work out the difference of what to send if persisting ratings locally. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom