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
Development
General Development (no feature request here!)
Database: Refactor MP1 database for multi seat usage
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="Anthony Vaughan" data-source="post: 1286846" data-attributes="member: 153283"><p>Hi AJS</p><p></p><p>I suspect that is what you think is happening. And, just looking at the screen, I can understand why you think it is doing what you say. But, looking at the code and doing debug on this, the data you are seeing is actually coming from movieinfo: i.e. the information gathered by the scan process for the user's video.</p><p></p><p>I wrote the code to get the data for all movies belonging top an actor and all that is returned is the IMDBId, title and year. All of the other fields are blank. I can show you the code if you want. Furthermore, the code that populates the listbox below:</p><p></p><p>[ATTACH=full]209405[/ATTACH]</p><p></p><p>does not populate from IMDBMovies. Instead, it gets the data from movieinfo and actorlinkmovie. Exactly what I told you it was doing. Even when we try to get the data from IMDBMovies, the URL field is blank. Therefore, if we showed all the movies in which the actor has partaken, you wouldn't be able to link to the IMDB page for that movie because we don't have the data.</p><p></p><p>Here is the current code (1.29) that insert/updates actorinfomovies and IMDBMovies</p><p></p><p> </p><p> string strSQL =</p><p> String.Format(</p><p> "INSERT INTO actorinfomovies (idActor, idDirector , strPlotOutline , strPlot , strTagLine , strVotes , fRating ,strCast ,strCredits , iYear , strGenre , strPictureURL , strTitle , IMDBID , mpaa ,runtime , iswatched , role , iUserRating ) VALUES( {0}, {1}, '{2}', '{3}', '{4}', '{5}', '{6}', '{7}', '{8}', {9}, '{10}', '{11}', '{12}', '{13}', '{14}', {15}, {16}, '{17}', {18})",</p><p> idActor, </p><p> -1, </p><p> "",</p><p> "", </p><p> "", </p><p> "", </p><p> "",</p><p> "",</p><p> "", </p><p> 1900,</p><p> "",</p><p> "",</p><p> "", </p><p> movie.MovieImdbID, </p><p> "", </p><p> -1, </p><p> 0,</p><p> movieRole, </p><p> 0);</p><p> m_db.Execute(strSQL);</p><p> </p><p> // populate IMDB Movies</p><p> if (CheckMovieImdbId(movie.MovieImdbID))</p><p> {</p><p> strSQL = String.Format("SELECT * FROM IMDBMovies WHERE idIMDB='{0}'", movie.MovieImdbID);</p><p> SQLiteResultSet results = m_db.Execute(strSQL);</p><p> </p><p> if (results.Rows.Count == 0)</p><p> {</p><p> strSQL = String.Format("INSERT INTO IMDBMovies ( idIMDB, idTmdb, strPlot, strCast, strCredits, iYear, strGenre, strPictureURL, strTitle, mpaa) VALUES( '{0}' ,'{1}' ,'{2}' , '{3}' , '{4}' , {5} , '{6}' ,'{7}' ,'{8}' , '{9}')",</p><p> movie.MovieImdbID,</p><p> "", // Not used (TMDBid)</p><p> "",</p><p> "",</p><p> "",</p><p> movie.Year,</p><p> "",</p><p> "",</p><p> movieTitle,</p><p> "");</p><p> m_db.Execute(strSQL);</p><p> }</p><p> else</p><p> {</p><p> strSQL = String.Format("UPDATE IMDBMovies SET iYear={0}, strTitle='{1}' WHERE idIMDB='{2}'",</p><p> movie.Year,</p><p> movieTitle,</p><p> movie.MovieImdbID);</p><p> m_db.Execute(strSQL);</p><p> }</p><p> }</p><p></p><p></p><p>So, I think actorinfomovies and IMDBMOvie are pointless. I've written the code to populate IMDBMovie and, for 12 Years a Slave it returned 349 movies related to participants in the movie, but then the system didn't use that data anyway.</p></blockquote><p></p>
[QUOTE="Anthony Vaughan, post: 1286846, member: 153283"] Hi AJS I suspect that is what you think is happening. And, just looking at the screen, I can understand why you think it is doing what you say. But, looking at the code and doing debug on this, the data you are seeing is actually coming from movieinfo: i.e. the information gathered by the scan process for the user's video. I wrote the code to get the data for all movies belonging top an actor and all that is returned is the IMDBId, title and year. All of the other fields are blank. I can show you the code if you want. Furthermore, the code that populates the listbox below: [ATTACH type="full"]209405[/ATTACH] does not populate from IMDBMovies. Instead, it gets the data from movieinfo and actorlinkmovie. Exactly what I told you it was doing. Even when we try to get the data from IMDBMovies, the URL field is blank. Therefore, if we showed all the movies in which the actor has partaken, you wouldn't be able to link to the IMDB page for that movie because we don't have the data. Here is the current code (1.29) that insert/updates actorinfomovies and IMDBMovies string strSQL = String.Format( "INSERT INTO actorinfomovies (idActor, idDirector , strPlotOutline , strPlot , strTagLine , strVotes , fRating ,strCast ,strCredits , iYear , strGenre , strPictureURL , strTitle , IMDBID , mpaa ,runtime , iswatched , role , iUserRating ) VALUES( {0}, {1}, '{2}', '{3}', '{4}', '{5}', '{6}', '{7}', '{8}', {9}, '{10}', '{11}', '{12}', '{13}', '{14}', {15}, {16}, '{17}', {18})", idActor, -1, "", "", "", "", "", "", "", 1900, "", "", "", movie.MovieImdbID, "", -1, 0, movieRole, 0); m_db.Execute(strSQL); // populate IMDB Movies if (CheckMovieImdbId(movie.MovieImdbID)) { strSQL = String.Format("SELECT * FROM IMDBMovies WHERE idIMDB='{0}'", movie.MovieImdbID); SQLiteResultSet results = m_db.Execute(strSQL); if (results.Rows.Count == 0) { strSQL = String.Format("INSERT INTO IMDBMovies ( idIMDB, idTmdb, strPlot, strCast, strCredits, iYear, strGenre, strPictureURL, strTitle, mpaa) VALUES( '{0}' ,'{1}' ,'{2}' , '{3}' , '{4}' , {5} , '{6}' ,'{7}' ,'{8}' , '{9}')", movie.MovieImdbID, "", // Not used (TMDBid) "", "", "", movie.Year, "", "", movieTitle, ""); m_db.Execute(strSQL); } else { strSQL = String.Format("UPDATE IMDBMovies SET iYear={0}, strTitle='{1}' WHERE idIMDB='{2}'", movie.Year, movieTitle, movie.MovieImdbID); m_db.Execute(strSQL); } } So, I think actorinfomovies and IMDBMOvie are pointless. I've written the code to populate IMDBMovie and, for 12 Years a Slave it returned 349 movies related to participants in the movie, but then the system didn't use that data anyway. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Database: Refactor MP1 database for multi seat usage
Contact us
RSS
Top
Bottom