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: 1287025" data-attributes="member: 153283"><p>This is the code that gets actor details in IMDB.cs:</p><p></p><p> public bool GetActorDetails(IMDBUrl url, out IMDBActor actor, bool pFetchActorInfo)</p><p> {</p><p> actor = new IMDBActor();</p><p></p><p> int pos = url.URL.LastIndexOf("nm");</p><p> string id = url.URL.Substring(pos, 9).Replace("/", string.Empty);</p><p></p><p> Log.Debug("IMDB: GetActorDetails: start id: {0}", id);</p><p></p><p> try</p><p> {</p><p> if (pFetchActorInfo || !VideoDatabase.HasActorByIMDBActorID(id))</p><p> {</p><p> if (InternalActorsScriptGrabber.InternalActorsGrabber.GetActorDetails(url, out actor))</p><p> {</p><p> // Add filmography</p><p> if (actor.Count > 0)</p><p> {</p><p> actor.SortActorMoviesByYear();</p><p> }</p><p></p><p> return true;</p><p> }</p><p> }</p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> Log.Error("IMDB GetActorDetails Error: {0}", ex.Message);</p><p> }</p><p> return false;</p><p> }</p><p></p><p>It uses IMDBUrl as the search parameter to get actor details in InternalActorMoviesGrabber.csscript. That's why I store it for fast fetch refreshes.</p><p></p><p>I don't see what's wrong with that and, besides, this method is optional. If you want to do a full search every time then don't select Fast Fetch.</p></blockquote><p></p>
[QUOTE="Anthony Vaughan, post: 1287025, member: 153283"] This is the code that gets actor details in IMDB.cs: public bool GetActorDetails(IMDBUrl url, out IMDBActor actor, bool pFetchActorInfo) { actor = new IMDBActor(); int pos = url.URL.LastIndexOf("nm"); string id = url.URL.Substring(pos, 9).Replace("/", string.Empty); Log.Debug("IMDB: GetActorDetails: start id: {0}", id); try { if (pFetchActorInfo || !VideoDatabase.HasActorByIMDBActorID(id)) { if (InternalActorsScriptGrabber.InternalActorsGrabber.GetActorDetails(url, out actor)) { // Add filmography if (actor.Count > 0) { actor.SortActorMoviesByYear(); } return true; } } } catch (Exception ex) { Log.Error("IMDB GetActorDetails Error: {0}", ex.Message); } return false; } It uses IMDBUrl as the search parameter to get actor details in InternalActorMoviesGrabber.csscript. That's why I store it for fast fetch refreshes. I don't see what's wrong with that and, besides, this method is optional. If you want to do a full search every time then don't select Fast Fetch. [/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