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 1
MediaPortal 1 Skins
Popular Skins
aMPed
MyFilms 6 and Latest Media Handler 1.6.0.9
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="Guzzi" data-source="post: 1091120" data-attributes="member: 55213"><p>Thanks - looked at the code and indeed, LMH is always "only" getting the last 10 "recently added movies" during last 999 days - and only checks of those (!) the unwatched ones, if configured in LMH setup.</p><p>[code]</p><p>GetMostRecent(MyFilmsPlugin.MyFilms.BaseMesFilms.MostRecentType.Added,999,10)</p><p>[/code]</p><p></p><p>However, MyFilms also supportes to only get unwatched movies in the API:</p><p>[code]</p><p> /// <summary></p><p> /// returns the most recent movies based on conditions</p><p> /// </summary></p><p> /// <param name="type">most recent type</param></p><p> /// <param name="days">number of days to look back in database</param></p><p> /// <param name="limit">number of results to return</param></p><p> /// <param name="unwatchedOnly">only get unwatched episodes (only used with recent added type)</param></p><p> public static List<MFMovie> GetMostRecent(MostRecentType type, int days, int limit, bool unwatchedOnly)</p><p>[/code]</p><p>So in LMH the setting about unwatched movies simply needs to be applied to where it is fetching the movie list.</p><p>Only a few code line changes - I can create a patch, if anyone is able to commit them and create new LMH build.</p></blockquote><p></p>
[QUOTE="Guzzi, post: 1091120, member: 55213"] Thanks - looked at the code and indeed, LMH is always "only" getting the last 10 "recently added movies" during last 999 days - and only checks of those (!) the unwatched ones, if configured in LMH setup. [code] GetMostRecent(MyFilmsPlugin.MyFilms.BaseMesFilms.MostRecentType.Added,999,10) [/code] However, MyFilms also supportes to only get unwatched movies in the API: [code] /// <summary> /// returns the most recent movies based on conditions /// </summary> /// <param name="type">most recent type</param> /// <param name="days">number of days to look back in database</param> /// <param name="limit">number of results to return</param> /// <param name="unwatchedOnly">only get unwatched episodes (only used with recent added type)</param> public static List<MFMovie> GetMostRecent(MostRecentType type, int days, int limit, bool unwatchedOnly) [/code] So in LMH the setting about unwatched movies simply needs to be applied to where it is fetching the movie list. Only a few code line changes - I can create a patch, if anyone is able to commit them and create new LMH build. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Popular Skins
aMPed
MyFilms 6 and Latest Media Handler 1.6.0.9
Contact us
RSS
Top
Bottom