"IMDB_MP13x - missing Country and Language (1 Viewer)

hkjensen

MP Donator
  • Premium Supporter
  • June 11, 2007
    164
    65
    Copenhagen
    Denmark Denmark
    Country flag
    Hi

    Current script can't grab Country or Lanquage.

    Attached version works

    // Country
    regexBlockPattern = @"<h4\sclass=""inline"">Country:</h4>.*?<h4";
    regexPattern = @"'url'>(?<country>.*?)</a>";
    block = Regex.Match(strBody, regexBlockPattern, RegexOptions.Singleline).Value.Replace("\n", string.Empty);
    MatchCollection mcCountry = Regex.Matches(block, regexPattern, RegexOptions.Singleline);
    string country = string.Empty;
    foreach (Match ms in mcCountry)
    {
    country = country + ms.Groups["country"].Value + " / ";
    }
    try
    {
    if (!string.IsNullOrEmpty(country))
    {
    movieDetails.Country = country.Remove(country.LastIndexOf(" / "));
    }
    }
    catch (Exception ex)
    {
    MediaPortal.GUI.Library.Log.Error("IMDB Script GetCountry error: {0}", ex.Message);
    }
    // Language
    regexPattern = @"<h4\sclass=""inline"">Language:</h4>.*?url'>(?<language>.*?)</a>";
    string language = Regex.Match(strBody, regexPattern, RegexOptions.Singleline).Groups["language"].Value;
    movieDetails.Language = language;
     

    Attachments

    jant

    New Member
    October 13, 2017
    2
    0
    51
    Germany Germany
    and plot has been "unknown" for more than month
    whats the problem?
    thx
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    164
    65
    Copenhagen
    Denmark Denmark
    Country flag
    Hi
    Attached script works

    Changed regex to
    // Plot short
    regexPattern = @"class=""summary_text""\sitemprop=""description"">(?<moviePlotShort>.*?)</div>";

    Changed regex for Plot Long

    regexPattern = @"data-target=""summary-.+?"">(?<moviePlot>.+?)<br\s/>";
    movieDetails.Plot = Regex.Match(strPlotHtml, regexPattern,
    RegexOptions.IgnoreCase |
    RegexOptions.IgnorePatternWhitespace |
    RegexOptions.Singleline |
    RegexOptions.Compiled).Groups["moviePlot"].Value;
     

    Attachments

    Last edited:

    jant

    New Member
    October 13, 2017
    2
    0
    51
    Germany Germany
    So now all the en imdb have stopped working. What happened? Any IMDB change? thx
     

    DrJekell

    MP Donator
  • Premium Supporter
  • December 30, 2007
    14
    2
    United States of America United States of America
    Country flag
    This script fixed the Plot issue but actors still doesn't work. Anyone no what is going on? IMDB scripts haven't worked properly for months now.
     
    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    B Overhaul IMDb+ rating system IMDb+ 5
    RoChess IMDb tt-ID expansion Moving Pictures 11
    D Ripped movies not importing unless IMDB code is included in folder name General 4
    fredco IMDb+ wants Dutch titles! IMDb+ 0
    W [solved] MP 1.20 Video IMDB no showing plot General Support 129
    Terra IMDB Scraper issue? HTML Tags in results Moving Pictures 2
    M [solved] IMDB script broken again General Support 67
    O Steps to achieve AV sync - please tell me I'm missing something General 0
    P Missing channels after rebuild (all on one MUX ?) General 2
    SpudR Missing Page Numbers Website/Forum/Wiki Feedback 11
    g0rsq UK Freesat not tunning BBC HD channels, and lots of other freesat channels missing. Newcomers Forum 4
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    HTPCSourcer Missing series posters/banners MediaPortal 2 11
    thepahakurki Trakt error: Invalid or missing file Trakt 8
    T How to add missing buttons IR Server Suite (IRSS) 0
    T Missing sound in online streaming service (SVTPlay) General Support 3
    D Tuner Suddenly Missing Channels TV-Cards 0
    S Missing plugin for MP2 Plugin Development 1
    L [solved] MP2 doesnt play anything - player missing? General 1
    L Tv series install problem missing file My TVSeries 7
    L [solved] Missing gentle.config file General 6
    CyberSimian TV Server import is missing some settings MediaPortal 1 0
    T Media Portal 2 EPG data missing General 16
    zunixnuz Missing #iswatched property to recorded TV Titan Skin Feedback 5
    Ralph Holmes Missing TV channels after transmitter change (Tacolneston) General 6
    Top Bottom