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 Plugins
MePo Tools - Download ClearArt/CDArt/ClearLogos, Music Video clips and more!
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: 1025989" data-attributes="member: 55213"><p>... I'd recommend using API to get info, as this avoids to handle all possible problems with DB locations, configuration, settings, etc.</p><p>[CODE]</p><p> // get all movies</p><p> ArrayList myvideos = new ArrayList();</p><p> BaseMesFilms.GetMovies(ref myvideos);</p><p> List<MFMovie> MovieList = (from MFMovie movie in myvideos select movie).ToList();</p><p>[/CODE]</p><p>or "latest media" request, setting number of days big enough:</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></blockquote><p></p>
[QUOTE="Guzzi, post: 1025989, member: 55213"] ... I'd recommend using API to get info, as this avoids to handle all possible problems with DB locations, configuration, settings, etc. [CODE] // get all movies ArrayList myvideos = new ArrayList(); BaseMesFilms.GetMovies(ref myvideos); List<MFMovie> MovieList = (from MFMovie movie in myvideos select movie).ToList(); [/CODE] or "latest media" request, setting number of days big enough: [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] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MePo Tools - Download ClearArt/CDArt/ClearLogos, Music Video clips and more!
Contact us
RSS
Top
Bottom