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="henso" data-source="post: 1246233" data-attributes="member: 119106"><p>Actually now thinking about it, the play count should never be reset, because it is used to show the most played media items. Just because you reset the play state doesn't mean you never watched. The KEY_PLAY_PERCENTAGE is used for showing the current play state. You should use that. If it is 0 or missing, it is un-watched and if it is 100 it is watched. That's how the client does it. What you want to do with the values in between is up to you.</p><p></p><p>You just load the media items again with a user id and then the data will be added to the media item data.</p><p></p><p>I don't know much about the client innards but you would have reload only that media item, once the data returns you would have to find and update the media item in the list and lastly you would have to update the whole view because I don't think updating a single list item is currently possible. Updating the list would currently mean it would jump to the top of the list forgetting the previously focused media item IIRC. And really I don't think it is that necessary because the client data is not constantly synced with the server anyway, so there is no guarantee that the data is ever up to date.</p></blockquote><p></p>
[QUOTE="henso, post: 1246233, member: 119106"] Actually now thinking about it, the play count should never be reset, because it is used to show the most played media items. Just because you reset the play state doesn't mean you never watched. The KEY_PLAY_PERCENTAGE is used for showing the current play state. You should use that. If it is 0 or missing, it is un-watched and if it is 100 it is watched. That's how the client does it. What you want to do with the values in between is up to you. You just load the media items again with a user id and then the data will be added to the media item data. I don't know much about the client innards but you would have reload only that media item, once the data returns you would have to find and update the media item in the list and lastly you would have to update the whole view because I don't think updating a single list item is currently possible. Updating the list would currently mean it would jump to the top of the list forgetting the previously focused media item IIRC. And really I don't think it is that necessary because the client data is not constantly synced with the server anyway, so there is no guarantee that the data is ever up to date. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom