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
Skins and Design
"Latest media" 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="morpheus_xx" data-source="post: 1108559" data-attributes="member: 48495"><p>Is there a real definition what is "latest"? In MP2 I list the newest recently imported items. Depending on media type, there are many possible date information available, let's give a few examples:</p><p></p><p>The MediaAspect.ATTR_RECORDINGTIME contains a quite common date: for Audio/Movies there is the "release year". For TV recordings it's the actual recording time. If the recording is a movie from 2012, recorded in 2014, which is the "latest date" to sort?</p><p></p><p>So for now I took the "DateAdded", when the MediaItem got imported into ML first.</p><p><a href="https://github.com/MediaPortal/MediaPortal-2/blob/cf01d25acb689c1ac2453038349d97530a76c09f/MediaPortal/Source/UI/UiComponents/Media/Models/LatestMediaModel.cs#L118-L122" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/cf01d25acb689c1ac2453038349d97530a76c09f/MediaPortal/Source/UI/UiComponents/Media/Models/LatestMediaModel.cs#L118-L122</a></p><p></p><p>As you see in this example, the ordering is only one parameter and it could be set differently per category (Image/Video/Audio). </p><p></p><p>But in any way there will be different opinions what "latest" mean...</p><p></p><p></p><p></p><p>Regarding trakt sync: </p><p>What held me back currently is the inability to store "per user" status of watched flag inside the MediaLibrary (ML). This is planned to be changed, so a MediaItem can hold "watched" flags for different users. </p><p>For MP2 we want to support different users, which are currently different MP2-Client, as we have no login/"change user" screen.</p><p></p><p>Once we have this, the "sync" call would have to consider each known trakt user account and map the user's "watched" into a MediaAspect of MediaItem.</p><p></p><p>An interim solution could be built (I would have needed this as well), but I had no time for it.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1108559, member: 48495"] Is there a real definition what is "latest"? In MP2 I list the newest recently imported items. Depending on media type, there are many possible date information available, let's give a few examples: The MediaAspect.ATTR_RECORDINGTIME contains a quite common date: for Audio/Movies there is the "release year". For TV recordings it's the actual recording time. If the recording is a movie from 2012, recorded in 2014, which is the "latest date" to sort? So for now I took the "DateAdded", when the MediaItem got imported into ML first. [url]https://github.com/MediaPortal/MediaPortal-2/blob/cf01d25acb689c1ac2453038349d97530a76c09f/MediaPortal/Source/UI/UiComponents/Media/Models/LatestMediaModel.cs#L118-L122[/url] As you see in this example, the ordering is only one parameter and it could be set differently per category (Image/Video/Audio). But in any way there will be different opinions what "latest" mean... Regarding trakt sync: What held me back currently is the inability to store "per user" status of watched flag inside the MediaLibrary (ML). This is planned to be changed, so a MediaItem can hold "watched" flags for different users. For MP2 we want to support different users, which are currently different MP2-Client, as we have no login/"change user" screen. Once we have this, the "sync" call would have to consider each known trakt user account and map the user's "watched" into a MediaAspect of MediaItem. An interim solution could be built (I would have needed this as well), but I had no time for it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
"Latest media" for MP2
Contact us
RSS
Top
Bottom