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
Area 51 - Testing Area
Centralised database in My Video, My Pictures and folder settings
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="ltfearme" data-source="post: 1124933" data-attributes="member: 52219"><p>Trakt uses the following API calls with no SQL as parameters:</p><p>[code]</p><p>public static void SetMovieInfoById(int lMovieId, ref IMDBMovie details);</p><p>public static void SetMovieWatchedStatus(int iMovieId, bool watched, int percent);</p><p>public static int GetFile(string strFilenameAndPath, out int lPathId, out int lMovieId, bool bExact);</p><p>public static bool GetmovieWatchedStatus(int iMovieId, out int percent, out int timesWatched);</p><p>public static void SetMovieWatchedCount(int movieId, int watchedCount);</p><p>public static void SetMovieWatchedStatus(int iMovieId, bool watched, int percent);</p><p>public static int GetMovieInfo(string strFilenameAndPath, ref IMDBMovie details);</p><p>public static int GetMovieId(string strFilenameAndPath);</p><p>public static int GetMovieStopTime(int iFileId);</p><p>public static void SetMovieStopTime(int iFileId, int stoptime);</p><p>public static void GetMovies(ref ArrayList movies);</p><p>[/code]</p><p></p><p>There is one public method I use which does take SQL, its only used in the configuration dialog so people can select which movies to restrict by Title or Path. It wouldn't be a big deal if I had to change this as it wont affect the everyday use of the plugin and im sure I can find another way to do what I want.</p><p>[code]</p><p>public static SQLiteResultSet GetResults(string sql);</p><p>[/code]</p><p></p><p>The SQL I use is the following:</p><p>[CODE]</p><p>SELECT movieinfo.strTitle, path.strPath, files.strFilename </p><p>FROM movieInfo</p><p>LEFT JOIN files</p><p>ON movieInfo.idMovie=files.idMovie</p><p>LEFT JOIN path</p><p>ON files.idPath=path.idPath</p><p>ORDER BY strTitle</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1124933, member: 52219"] Trakt uses the following API calls with no SQL as parameters: [code] public static void SetMovieInfoById(int lMovieId, ref IMDBMovie details); public static void SetMovieWatchedStatus(int iMovieId, bool watched, int percent); public static int GetFile(string strFilenameAndPath, out int lPathId, out int lMovieId, bool bExact); public static bool GetmovieWatchedStatus(int iMovieId, out int percent, out int timesWatched); public static void SetMovieWatchedCount(int movieId, int watchedCount); public static void SetMovieWatchedStatus(int iMovieId, bool watched, int percent); public static int GetMovieInfo(string strFilenameAndPath, ref IMDBMovie details); public static int GetMovieId(string strFilenameAndPath); public static int GetMovieStopTime(int iFileId); public static void SetMovieStopTime(int iFileId, int stoptime); public static void GetMovies(ref ArrayList movies); [/code] There is one public method I use which does take SQL, its only used in the configuration dialog so people can select which movies to restrict by Title or Path. It wouldn't be a big deal if I had to change this as it wont affect the everyday use of the plugin and im sure I can find another way to do what I want. [code] public static SQLiteResultSet GetResults(string sql); [/code] The SQL I use is the following: [CODE] SELECT movieinfo.strTitle, path.strPath, files.strFilename FROM movieInfo LEFT JOIN files ON movieInfo.idMovie=files.idMovie LEFT JOIN path ON files.idPath=path.idPath ORDER BY strTitle [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
Centralised database in My Video, My Pictures and folder settings
Contact us
RSS
Top
Bottom