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: 1162462" data-attributes="member: 72523"><p>Hello everyone,</p><p></p><p>I've just pushed to my repo a first working version:</p><p><a href="https://github.com/aspik/MediaPortal-2/commit/334f8ad0be3a48aeedaa511715acb7cf80e470f5" target="_blank">https://github.com/aspik/MediaPortal-2/commit/334f8ad0be3a48aeedaa511715acb7cf80e470f5</a></p><p>It is now possible to sync the movie and series library. Scrobbling for movies and series is working too.</p><p>[USER=48495]@morpheus_xx[/USER]</p><p>Can you please review it? 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><u><strong>What is working</strong>:</u></p><p><em><a href="https://github.com/aspik/MediaPortal-2/blob/FEAT_Trakt_v3/MediaPortal/Incubator/Trakt/TraktLogger.cs" target="_blank">TraktLogger</a>:</em></p><p>as morpheus_xx suggested I've modified it, so that it uses the MP2 Logger.</p><p></p><p><em><a href="https://github.com/aspik/MediaPortal-2/blob/FEAT_Trakt_v3/MediaPortal/Incubator/Trakt/Settings/TraktSettings.cs" target="_blank">TraktSettings</a>:</em></p><p>the plugin uses now the MP2 settings located in:</p><p>c:\ProgramData\Team MediaPortal\MP2-Client\Config\user\MediaPortal.UiComponents.Trakt.Settings.TraktSettings.xml</p><p></p><p><em><a href="https://github.com/aspik/MediaPortal-2/blob/FEAT_Trakt_v3/MediaPortal/Incubator/Trakt/TraktCache.cs" target="_blank">TraktCache</a>:</em></p><p>is saved in the MP2-Client user data directory:</p><p>c:\ProgramData\Team MediaPortal\MP2-Client\Trakt\user\Library\</p><p><u><strong></strong></u></p><p><u><strong>Need to be fixed:</strong></u></p><p><em>Audio Channels:</em></p><p>I was not able to get the audio channels from the Transcoding Service. Here I need some help how can I do it. But, as all the needed information is already provided by the MediaInfo.dll, maybe can the VideoAspect be extended by my patch? Unless the transcoding service gets into the MP2 core?</p><p></p><p><em>Password:</em></p><p>The password is saved in the settings XML as plain text In the MP1 Trakt version there is an encrypt and decrypt method:</p><p><a href="https://github.com/trakt/Trakt-for-Mediaportal/blob/50d04ca6a0910ba12edeed53562ae1cdc534d048/TraktPlugin/Extensions/SecurityExtensions.cs#L14" target="_blank">https://github.com/trakt/Trakt-for-Mediaportal/blob/50d04ca6a0910ba12edeed53562ae1cdc534d048/TraktPlugin/Extensions/SecurityExtensions.cs#L14</a></p><p>[USER=48495]@morpheus_xx[/USER]</p><p>Should I use it, or maybe is something similar already available in MP2?</p><p></p><p><em>API Key:</em></p><p>The API key I received from Trakt is not working. The plugin is only working with the API key from MP1 Trakt.</p><p>[USER=52219]@ltfearme[/USER]</p><p>Can you please give me a hint what I'm doing wrong? I've created an app at trakt.tv (see screenshot). Unfortunately I can't use it, every time I try to sync to trakt, I get the following error:</p><p>[code]Trakt.tv: Protocol Error, Code = '401', Description = 'Unauthorized', Url = 'http://api-v2launch.trakt.tv/sync/last_activities', Headers = 'Transfer-Encoding: chunked, Connection: keep-alive, Pragma: no-cache, Vary: Accept-Encoding, X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, X-Request-Id: 2895a406-41e6-4d62-8946-e21b95a5256b, X-Runtime: 0.005330, X-XSS-Protection: 1; mode=block, CF-RAY: 2495bf8dac7f2d65-TXL, Cache-Control: max-age=0, private, no-cache, no-store, must-revalidate, Content-Type: text/html, Date: Sun, 22 Nov 2015 15:43:08 GMT, Set-Cookie: __cfduid=d41c58ff3f23283ba29aafe397de8b0fb1448206988; expires=Mon, 21-Nov-16 15:43:08 GMT; path=/; domain=.trakt.tv; HttpOnly, Server: cloudflare-nginx, WWW-Authenticate: Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token is invalid"'[/code]</p><p>If I changed it to your API, everything is working fine.</p><p></p><p><u><strong>What's next:</strong></u></p><p>I would like to port the rest features of the MP1 version to MP2.</p><p></p><p><em>Sync Progress:</em></p><p>[USER=48495]@morpheus_xx[/USER]</p><p>Is it possible to write back the watched progress in MP2 ML? For example, I've started watching a movie on MP1 (or any other device where it is possible to log into trakt), but I didn't watch it till the end. After stopping the movie MP1 syncs the watched progress to trakt. Then, when I start watching the movie on MP2 it would sync back from trakt the watched status and play it from that position.</p><p></p><p><em>Ratings:</em></p><p>Does MP2 have the ability to store user ratings? If not, can it be maybe added in future?</p><p></p><p><em>GUI screens:</em></p><p>Trakt for MP1 has a lot of GUI screens like trendig movies, calendar, etc:</p><p><a href="https://forum.team-mediaportal.com/threads/5-6-1-trakt-for-mediaportal-2015-11-07.97807/" target="_blank">https://forum.team-mediaportal.com/threads/5-6-1-trakt-for-mediaportal-2015-11-07.97807/</a></p><p>I would like to port/add as much as possible of those screens in MP2. To provide the same set of Trakt features in MP2 as it already is in MP1.</p><p>[USER=145639]@ge2301[/USER]</p><p>Are you interested in designing those screens? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="aspik, post: 1162462, member: 72523"] Hello everyone, I've just pushed to my repo a first working version: [URL]https://github.com/aspik/MediaPortal-2/commit/334f8ad0be3a48aeedaa511715acb7cf80e470f5[/URL] It is now possible to sync the movie and series library. Scrobbling for movies and series is working too. [USER=48495]@morpheus_xx[/USER] Can you please review it? Thanks! :) [U][B]What is working[/B]:[/U] [I][URL='https://github.com/aspik/MediaPortal-2/blob/FEAT_Trakt_v3/MediaPortal/Incubator/Trakt/TraktLogger.cs']TraktLogger[/URL]:[/I] as morpheus_xx suggested I've modified it, so that it uses the MP2 Logger. [I][URL='https://github.com/aspik/MediaPortal-2/blob/FEAT_Trakt_v3/MediaPortal/Incubator/Trakt/Settings/TraktSettings.cs']TraktSettings[/URL]:[/I] the plugin uses now the MP2 settings located in: c:\ProgramData\Team MediaPortal\MP2-Client\Config\user\MediaPortal.UiComponents.Trakt.Settings.TraktSettings.xml [I][URL='https://github.com/aspik/MediaPortal-2/blob/FEAT_Trakt_v3/MediaPortal/Incubator/Trakt/TraktCache.cs']TraktCache[/URL]:[/I] is saved in the MP2-Client user data directory: c:\ProgramData\Team MediaPortal\MP2-Client\Trakt\user\Library\ [U][B] Need to be fixed:[/B][/U] [I]Audio Channels:[/I] I was not able to get the audio channels from the Transcoding Service. Here I need some help how can I do it. But, as all the needed information is already provided by the MediaInfo.dll, maybe can the VideoAspect be extended by my patch? Unless the transcoding service gets into the MP2 core? [I]Password:[/I] The password is saved in the settings XML as plain text In the MP1 Trakt version there is an encrypt and decrypt method: [URL]https://github.com/trakt/Trakt-for-Mediaportal/blob/50d04ca6a0910ba12edeed53562ae1cdc534d048/TraktPlugin/Extensions/SecurityExtensions.cs#L14[/URL] [USER=48495]@morpheus_xx[/USER] Should I use it, or maybe is something similar already available in MP2? [I]API Key:[/I] The API key I received from Trakt is not working. The plugin is only working with the API key from MP1 Trakt. [USER=52219]@ltfearme[/USER] Can you please give me a hint what I'm doing wrong? I've created an app at trakt.tv (see screenshot). Unfortunately I can't use it, every time I try to sync to trakt, I get the following error: [code]Trakt.tv: Protocol Error, Code = '401', Description = 'Unauthorized', Url = 'http://api-v2launch.trakt.tv/sync/last_activities', Headers = 'Transfer-Encoding: chunked, Connection: keep-alive, Pragma: no-cache, Vary: Accept-Encoding, X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, X-Request-Id: 2895a406-41e6-4d62-8946-e21b95a5256b, X-Runtime: 0.005330, X-XSS-Protection: 1; mode=block, CF-RAY: 2495bf8dac7f2d65-TXL, Cache-Control: max-age=0, private, no-cache, no-store, must-revalidate, Content-Type: text/html, Date: Sun, 22 Nov 2015 15:43:08 GMT, Set-Cookie: __cfduid=d41c58ff3f23283ba29aafe397de8b0fb1448206988; expires=Mon, 21-Nov-16 15:43:08 GMT; path=/; domain=.trakt.tv; HttpOnly, Server: cloudflare-nginx, WWW-Authenticate: Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token is invalid"'[/code] If I changed it to your API, everything is working fine. [U][B]What's next:[/B][/U] I would like to port the rest features of the MP1 version to MP2. [I]Sync Progress:[/I] [USER=48495]@morpheus_xx[/USER] Is it possible to write back the watched progress in MP2 ML? For example, I've started watching a movie on MP1 (or any other device where it is possible to log into trakt), but I didn't watch it till the end. After stopping the movie MP1 syncs the watched progress to trakt. Then, when I start watching the movie on MP2 it would sync back from trakt the watched status and play it from that position. [I]Ratings:[/I] Does MP2 have the ability to store user ratings? If not, can it be maybe added in future? [I]GUI screens:[/I] Trakt for MP1 has a lot of GUI screens like trendig movies, calendar, etc: [URL]https://forum.team-mediaportal.com/threads/5-6-1-trakt-for-mediaportal-2015-11-07.97807/[/URL] I would like to port/add as much as possible of those screens in MP2. To provide the same set of Trakt features in MP2 as it already is in MP1. [USER=145639]@ge2301[/USER] Are you interested in designing those screens? :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom