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="aspik" data-source="post: 1245003" data-attributes="member: 72523"><p>I'm almost finished with this rework. The necessary user management changes for 2.2 are also done. Plus, a bunch of parameterized unit tests simulating starting/stopping playback, changing user settings and changing the user itself.</p><p></p><p>[USER=128278]@Alberto83[/USER]</p><p>Are you still willing to test it? If so, then I'm attaching a first version which is compatible with the 2.2 builds. Please remove the included in 2.2 trakt version by deleting the content of the Trakt directory in the program files MP2 client plugins directory and copy there the content of the attached files archive.</p><p></p><p>You can also delete the trakt directory in the MP2 client program data directory, but that should not be necessary as I'm now save/read all trakt data within the MP2 profile ID directory.</p><p>Please use a backup/test trakt account instead of your main account and a test MP2 DB. I tried to make everything working as it should, but there could be still some issues. And I don't want to mess up your main trakt account or MP2 library <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></p><p>I thought about this and honestly, I'm not sure if this is really a wanted feature. It's not a problem to srobble/sync to trakt for more than one user, but it is a problem to know which trakt user(s) should be used.</p><p></p><p>For 2.2 I currently bound the trakt user to the MP2 user profile ID. Means every MP2 user can have only one trakt user. I could allow to add/authorize more trakt users to one MP2 profile, but the problem is to select the right one after the user logs into this MP2 profile. This could be solved be showing a list of authorized trakt users right after the user changed in MP2. In this list the user would have to select the wanted trakt user(s). It isn't very user friendly. Even if I would display such a list (or choose a default one), then there is also a question what to do with an trakt account which was intended to use one time only (guest). Delete after watching a movie? Revoke the authorization?</p><p></p><p>IMHO this additional trakt user management layer is way to complicated for the majority of users. I personally have no use even for the MP2 user management because for me a HTPC (or TV) is "user agnostic" even within a family. But that's just my opinion. I think that in general the user management in MP2 is a wanted feature <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>So, for now I would stay with one trakt user per MP2 user.</p><p></p><p>[USER=48291]@Brownard[/USER]</p><p>Sorry to bother you with my silly plugin. I believe you added the recording notification? If you find a sec, I would be grateful, if you could give me some hints how to add such notifications.</p><p>Currently the user has no knowledge if by starting to play a movie/episode the trakt plugin is working properly and sends a scroblle start/stop post to trakt. I would like to add such notification like you did for the recording event. Each time a episode/movie gets played/stopped, a notification would be shown with the note that sending to trakt was successful or not. Of course I would make it configurable i.e. show every time, show only on failure or never.</p><p></p><p>[USER=145639]@ge2301[/USER]</p><p>I changed the setup dialog, its not longer necessary to enter the username (it was never necessary for the authorization process. I've added it for the caching mechanism as I didn't know better back then <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />).</p><p>Below a screenshot how it now looks in BV. If you want (and have the time) you can correct it according to your taste. The other skins are not yet adjusted. Thanks <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>[USER=48495]@morpheus_xx[/USER]</p><p>I'll remove in the next days the trakt plugin from the MP2 solution. The online library <a href="https://github.com/MediaPortal/MediaPortal-2/tree/master/MediaPortal/Source/Extensions/MetadataExtractors/OnlineLibraries/Libraries/Trakt" target="_blank">Trakt</a> will be also removed. I'll do it in the 2.2 branch.</p></blockquote><p></p>
[QUOTE="aspik, post: 1245003, member: 72523"] I'm almost finished with this rework. The necessary user management changes for 2.2 are also done. Plus, a bunch of parameterized unit tests simulating starting/stopping playback, changing user settings and changing the user itself. [USER=128278]@Alberto83[/USER] Are you still willing to test it? If so, then I'm attaching a first version which is compatible with the 2.2 builds. Please remove the included in 2.2 trakt version by deleting the content of the Trakt directory in the program files MP2 client plugins directory and copy there the content of the attached files archive. You can also delete the trakt directory in the MP2 client program data directory, but that should not be necessary as I'm now save/read all trakt data within the MP2 profile ID directory. Please use a backup/test trakt account instead of your main account and a test MP2 DB. I tried to make everything working as it should, but there could be still some issues. And I don't want to mess up your main trakt account or MP2 library ;) I thought about this and honestly, I'm not sure if this is really a wanted feature. It's not a problem to srobble/sync to trakt for more than one user, but it is a problem to know which trakt user(s) should be used. For 2.2 I currently bound the trakt user to the MP2 user profile ID. Means every MP2 user can have only one trakt user. I could allow to add/authorize more trakt users to one MP2 profile, but the problem is to select the right one after the user logs into this MP2 profile. This could be solved be showing a list of authorized trakt users right after the user changed in MP2. In this list the user would have to select the wanted trakt user(s). It isn't very user friendly. Even if I would display such a list (or choose a default one), then there is also a question what to do with an trakt account which was intended to use one time only (guest). Delete after watching a movie? Revoke the authorization? IMHO this additional trakt user management layer is way to complicated for the majority of users. I personally have no use even for the MP2 user management because for me a HTPC (or TV) is "user agnostic" even within a family. But that's just my opinion. I think that in general the user management in MP2 is a wanted feature :) So, for now I would stay with one trakt user per MP2 user. [USER=48291]@Brownard[/USER] Sorry to bother you with my silly plugin. I believe you added the recording notification? If you find a sec, I would be grateful, if you could give me some hints how to add such notifications. Currently the user has no knowledge if by starting to play a movie/episode the trakt plugin is working properly and sends a scroblle start/stop post to trakt. I would like to add such notification like you did for the recording event. Each time a episode/movie gets played/stopped, a notification would be shown with the note that sending to trakt was successful or not. Of course I would make it configurable i.e. show every time, show only on failure or never. [USER=145639]@ge2301[/USER] I changed the setup dialog, its not longer necessary to enter the username (it was never necessary for the authorization process. I've added it for the caching mechanism as I didn't know better back then :p). Below a screenshot how it now looks in BV. If you want (and have the time) you can correct it according to your taste. The other skins are not yet adjusted. Thanks :) [USER=48495]@morpheus_xx[/USER] I'll remove in the next days the trakt plugin from the MP2 solution. The online library [URL='https://github.com/MediaPortal/MediaPortal-2/tree/master/MediaPortal/Source/Extensions/MetadataExtractors/OnlineLibraries/Libraries/Trakt']Trakt[/URL] will be also removed. I'll do it in the 2.2 branch. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom