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="morpheus_xx" data-source="post: 1067942" data-attributes="member: 48495"><p>Hi,</p><p></p><p>there were many requests to add Trakt / Follow.it support to MP2. As I don't use those services, I need some help in understanding how they work.</p><p></p><p>So far I've seen, they provide:</p><ul> <li data-xf-list-type="ul">user registration</li> <li data-xf-list-type="ul">ability to upload your details about movies and series</li> <li data-xf-list-type="ul">synchronize the "watched" indicator of items</li> </ul><p>What I've seen is that Trakt API is provided by: <a href="https://github.com/Technicolour/Trakt-for-Mediaportal/tree/master/TraktPlugin/TraktAPI" target="_blank">https://github.com/Technicolour/Trakt-for-Mediaportal/tree/master/TraktPlugin/TraktAPI</a> (I think by @[USER=52219]ltfearme[/USER], right?). It offers different handlers to work with MP1 plugins.</p><p></p><p>Now we come to the point, how we could port the features to MP2 world:</p><p>I think in MP2 we have only one source for media information: the MediaLibrary (ML). We don't have x plugins to support like in MP1.</p><p>Dealing with the "watched" state would involve different parts:</p><ol> <li data-xf-list-type="ol">A plugin would need to be informed, that a MediaItem was played back. We already have 2 kind of this notifications:<ul> <li data-xf-list-type="ul">on playback start the ML (<em><strong>global</strong></em>) will be notified and updates the PlayCount attribute</li> <li data-xf-list-type="ul">on playback end the UserService (so <em><strong>user </strong></em>dependent) sends "resume state" to server, it persists it in mediaitem-user table</li> </ul></li> <li data-xf-list-type="ol">For (re-)imports of media the used MetaDataExtractors (MDEs) first detect the kind of video (series, movie), then it would be possible to ask the Trakt API if the item was watched already</li> </ol><p></p><p>The IUserProfileDataManagement provides methods to deal with user accounts (currently we implicitely use ClientPC == User), to store common user data and also mediaitem specific data.</p><p></p><p>As the online services reqiure authentification, we need to store user credentials in the profile.</p><p></p><p>So my questions are:</p><p>Is my understanding of the services correct? What important features I missed?</p><p>@[USER=52219]ltfearme[/USER] what do you think: can we use your(?) trakt api? Can it be made available separately, or could it be integrated into MP2 OnlineLibraries collection? (I think @[USER=10438]chefkoch[/USER] thought about this?) Edit: found the thread with the ideas: <a href="https://forum.team-mediaportal.com/threads/mediaportal-onlinelibraries-open-the-source-in-a-better-way.117705/" target="_blank">https://forum.team-mediaportal.com/threads/mediaportal-onlinelibraries-open-the-source-in-a-better-way.117705/</a></p><p></p><p>Please provide feedback, not only from dev's but also users point of view!</p><p></p><p><u><span style="font-size: 18px"><strong>Testbuilds</strong></span></u></p><p><u><span style="font-size: 18px"><strong><span style="font-size: 15px">2014-03-08:</span></strong></span></u></p><ul> <li data-xf-list-type="ul"><span style="font-size: 12px">First version, Configuration, Scrobbling of Movies and Series Episodes</span></li> <li data-xf-list-type="ul"><span style="font-size: 12px">Download: <a href="http://tinyurl.com/o8affmu" target="_blank">http://tinyurl.com/o8affmu</a></span></li> </ul><p><span style="font-size: 15px"><u><strong>2014-03-16:</strong></u></span></p><ul> <li data-xf-list-type="ul"><span style="font-size: 12px">Attached updated plugins for MP2-Client only</span></li> </ul></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1067942, member: 48495"] Hi, there were many requests to add Trakt / Follow.it support to MP2. As I don't use those services, I need some help in understanding how they work. So far I've seen, they provide: [LIST] [*]user registration [*]ability to upload your details about movies and series [*]synchronize the "watched" indicator of items [/LIST] What I've seen is that Trakt API is provided by: [url]https://github.com/Technicolour/Trakt-for-Mediaportal/tree/master/TraktPlugin/TraktAPI[/url] (I think by @[USER=52219]ltfearme[/USER], right?). It offers different handlers to work with MP1 plugins. Now we come to the point, how we could port the features to MP2 world: I think in MP2 we have only one source for media information: the MediaLibrary (ML). We don't have x plugins to support like in MP1. Dealing with the "watched" state would involve different parts: [LIST=1] [*]A plugin would need to be informed, that a MediaItem was played back. We already have 2 kind of this notifications: [LIST] [*]on playback start the ML ([I][B]global[/B][/I]) will be notified and updates the PlayCount attribute [*]on playback end the UserService (so [I][B]user [/B][/I]dependent) sends "resume state" to server, it persists it in mediaitem-user table [/LIST] [*]For (re-)imports of media the used MetaDataExtractors (MDEs) first detect the kind of video (series, movie), then it would be possible to ask the Trakt API if the item was watched already [/LIST] The IUserProfileDataManagement provides methods to deal with user accounts (currently we implicitely use ClientPC == User), to store common user data and also mediaitem specific data. As the online services reqiure authentification, we need to store user credentials in the profile. So my questions are: Is my understanding of the services correct? What important features I missed? @[USER=52219]ltfearme[/USER] what do you think: can we use your(?) trakt api? Can it be made available separately, or could it be integrated into MP2 OnlineLibraries collection? (I think @[USER=10438]chefkoch[/USER] thought about this?) Edit: found the thread with the ideas: [url]https://forum.team-mediaportal.com/threads/mediaportal-onlinelibraries-open-the-source-in-a-better-way.117705/[/url] Please provide feedback, not only from dev's but also users point of view! [U][SIZE=5][B]Testbuilds[/B] [B][SIZE=4]2014-03-08:[/SIZE][/B][/SIZE][/U] [LIST] [*][SIZE=3]First version, Configuration, Scrobbling of Movies and Series Episodes[/SIZE] [*][SIZE=3]Download: [url]http://tinyurl.com/o8affmu[/url][/SIZE] [/LIST] [SIZE=4][U][B]2014-03-16:[/B][/U][/SIZE] [LIST] [*][SIZE=3]Attached updated plugins for MP2-Client only[/SIZE] [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom