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: 1245973" data-attributes="member: 72523"><p>[USER=128278]@Alberto83[/USER] </p><p>Hold on a bit with the manual testing. I'm preparing something more automatic. I've added a new backup library button. After hitting it, two new json files will be created in your trakt MP2 profile directory. One contains your MP2 media library movies and the second one your series. This button works independently from trakt (no need to authorize trakt). Those files contains only the needed data for a trakt sync (imdb, year, date added to db, etc). </p><p></p><p>Next, I wrote a test (this time an integration test <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" />) in where I exchange the mocked trakt client with a real one and instead of some test data I set the real data from the previously saved json file. Then I'm calling the sync with trakt method and voila all my movies are send to trakt with just one click from within VS <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> By adding few asserts I can verify if the sync was OK or not. </p><p></p><p>The trak lib provides also some other usefully methods, like RemoveWatchedHistoryItems. So, to remove some (or all) watched movies will be also easy.</p></blockquote><p></p>
[QUOTE="aspik, post: 1245973, member: 72523"] [USER=128278]@Alberto83[/USER] Hold on a bit with the manual testing. I'm preparing something more automatic. I've added a new backup library button. After hitting it, two new json files will be created in your trakt MP2 profile directory. One contains your MP2 media library movies and the second one your series. This button works independently from trakt (no need to authorize trakt). Those files contains only the needed data for a trakt sync (imdb, year, date added to db, etc). Next, I wrote a test (this time an integration test :P) in where I exchange the mocked trakt client with a real one and instead of some test data I set the real data from the previously saved json file. Then I'm calling the sync with trakt method and voila all my movies are send to trakt with just one click from within VS :) By adding few asserts I can verify if the sync was OK or not. The trak lib provides also some other usefully methods, like RemoveWatchedHistoryItems. So, to remove some (or all) watched movies will be also easy. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom