Database: Refactor MP1 database for multi seat usage (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    14,138
    8,690
    Kyiv
    Home Country
    Ukraine Ukraine
    I am storing the IMDBUrl object in the database. So, it should be unique.
    For Test, make initial scan all movies with IMDB grabber, then Delete this grabber and set TI_MDB or TMDB grabber and try rescan :)
    The search is handled by the grabber, did you change his call? And did you change all the robbers? Or?
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    474
    234
    Home Country
    United Kingdom United Kingdom
    Provided that the structure of the site, grabber, API, etc. is not changed.
    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.
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    474
    234
    Home Country
    United Kingdom United Kingdom
    Its not URL its IMDB ID
    The first parameter of the GetActorDetails method is IMDBUrl which is a class including url. This is the class that the internal actor grabber uses to get actor details; using the url.URL and url.Title. Here's an example of what I am storing:

    1637002897445.png


    In this case the url seems to be a TMDBID.

    All I am doing is to store this information - what you chose when you did your first search on a movie - so that you can, optionally, avoid having to re-select the title if you don't want to change the source when doing a refresh. It makes refreshing your data much faster and needs only one click - which makes a massive difference when you are refreshing a lot of movies.

    I'm just not seeing the issue.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    14,138
    8,690
    Kyiv
    Home Country
    Ukraine Ukraine
    In this case the url seems to be a TMDBID.
    How will it work if this grabber is not there? If it doesn't work? If there are 3 grabbers in the settings and at the time of scanning we received information from the grabber that gives back the worst information?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    14,138
    8,690
    Kyiv
    Home Country
    Ukraine Ukraine
    All I am doing is to store this information - what you chose when you did your first search on a movie - so that you can
    In fact, this is unnecessary information and there is no point in storing it in the database, there is an IMDB ID and the name of the movie, by IMDB ID almost all grabbers uniquely identify the movie, if there is no IMDB ID, they look at the title. You just have not met with the movies that are not in the database IMDB, TMDB and are only in the database Kinopoisk, but there such a scheme with stored ID does not always work.
     

    Users who are viewing this thread

    Similar threads

    Hi, must be really a while, cuz I can not remember any post from you ;) But might be also that I joined the team too late. Yes, there will be many things. Main reason is simply, that MP2 is not developed based on MP1. I for example never used MP1. I tried it lately to test voice control and was shocked about many inconsistancies in...
    Hi, must be really a while, cuz I can not remember any post from you ;) But might be also that I joined the team too late. Yes...
    It´s been a while... :) Well, simply the reason is cause MP1 was working so well... :) Now I decided to upgrade my old servers and...
    Replies
    1
    Views
    242
    Ok, the importer also remembers the queue of items that are still needed to be processed in settings file. If there is something stuck, it will try again on next server start and probably stuck again. But removing the media source also removes the associated queue. The server's TV plugin automatically creates the media sources for...
    Ok, the importer also remembers the queue of items that are still needed to be processed in settings file. If there is something...
    Hi, I’ve been struggling with MP 2 now for several weeks. Initially all was fine. Then in the client, the listings of recorded TV...
    Replies
    8
    Views
    911
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me over the edge for sure.;)
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me...
    We are proud to present MediaPortal 2.3 MediaPortal 2.3 is a full-blown media center software that addresses the most common user...
    Replies
    4
    Views
    3K
    MP1 MP2 MP2 DLNA status? DE
    What I meant is that we have a MP2 plugin called UPnP Render that can play media from DLNA servers if I remember correctly. I don't know the current state of the plugin though. That's why MP2 probably never will be certified. ;) Yes, that was also the idea, but it is a big job as all TV's, software etc. seems to not do everything...
    What I meant is that we have a MP2 plugin called UPnP Render that can play media from DLNA servers if I remember correctly. I don't...
    So I'm wondering what the state of play is with MP2 and DLNA functionality? When I started this post, I did see some posts...
    Replies
    10
    Views
    1K
    Thank you joecrow! It seems to resolve the problem I got since 1.22.
    Thank you joecrow! It seems to resolve the problem I got since 1.22.
    Hi Guys, Most times I have had an issue with MP1 it has been a platform/OS/finger-trouble issue that a re-install etc fixes...
    Replies
    9
    Views
    984
    Top Bottom