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: 1246171" data-attributes="member: 72523"><p>Hi [USER=128278]@Alberto83[/USER] </p><p>thanks for the tests and sorry for the delay, didn't have much time this week... </p><p>There is indeed something wrong with the watched states. </p><p></p><p>[USER=119106]@henso[/USER] </p><p>I remember reading you changed something in 2.2 in regard watched states, if not then you probably familiar with this part and maybe you can help. </p><p></p><p>To check if a MI is watched I'm <a href="https://github.com/aspik/TraktPluginMP2/blob/master/TraktPluginMP2/TraktPluginMP2/Utilities/MediaItemAspectsUtl.cs#L177-L180" target="_blank">reading</a> the ATTR_PLAYCOUNT aspect. To mark a MI as watched I'm doing <a href="https://github.com/aspik/TraktPluginMP2/blob/master/TraktPluginMP2/TraktPluginMP2/Services/MediaPortalServices.cs#L76-L97" target="_blank">this</a> and as unwatched <a href="https://github.com/aspik/TraktPluginMP2/blob/master/TraktPluginMP2/TraktPluginMP2/Services/MediaPortalServices.cs#L102-L126" target="_blank">this</a>. Now, the problem is that marking the MI as watched increases the playcount. Marking it as unwatched changes only the state in the UI, but the playcount is still as it was before which returns true in the IsWatched method.</p><p></p><p>Is this the correct way to retrieve/manipulate the watched states of a MI from within the client?</p></blockquote><p></p>
[QUOTE="aspik, post: 1246171, member: 72523"] Hi [USER=128278]@Alberto83[/USER] thanks for the tests and sorry for the delay, didn't have much time this week... There is indeed something wrong with the watched states. [USER=119106]@henso[/USER] I remember reading you changed something in 2.2 in regard watched states, if not then you probably familiar with this part and maybe you can help. To check if a MI is watched I'm [URL='https://github.com/aspik/TraktPluginMP2/blob/master/TraktPluginMP2/TraktPluginMP2/Utilities/MediaItemAspectsUtl.cs#L177-L180']reading[/URL] the ATTR_PLAYCOUNT aspect. To mark a MI as watched I'm doing [URL='https://github.com/aspik/TraktPluginMP2/blob/master/TraktPluginMP2/TraktPluginMP2/Services/MediaPortalServices.cs#L76-L97']this[/URL] and as unwatched [URL='https://github.com/aspik/TraktPluginMP2/blob/master/TraktPluginMP2/TraktPluginMP2/Services/MediaPortalServices.cs#L102-L126']this[/URL]. Now, the problem is that marking the MI as watched increases the playcount. Marking it as unwatched changes only the state in the UI, but the playcount is still as it was before which returns true in the IsWatched method. Is this the correct way to retrieve/manipulate the watched states of a MI from within the client? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom