[Approved] - IMDB with AKA script

Discussion in 'Submit: Movie Info Grabbers' started by Deda, October 14, 2010.

  1. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Here I will post new IMDB with AKA scripts if any changes or bugfix occur. You will see two scripts:

    V 1.1.1 -> compatible from MP 1.1.1 to lower versions

    &

    V 1.2.x -> for MP versions 1.2.0 and above.

    Use the version which corresponds to your MP version.

    HF.

    LOG
    14.10.2010
    Show Spoiler

    Fix for local title name (annoying new IMDB website feature). Negative side of this is that foreign movie titles will be presented in it's original language titles.

    20.10.2010
    Show Spoiler

    Cast and role cosmetic fix (unneeded spaces removed, usually visible in cartoons).

    23.10.2010
    Show Spoiler

    Exception fix in movie run-time parsing.

    20.12.2010
    Show Spoiler

    Ratings rework. Now it will take IMDB (MPAA rating as default if no user country rating found. If both fails, it will work as before.)

    10.01.2011
    Show Spoiler

    Ratings bug fix.

    27.02.2011
    Show Spoiler

    Will try to get English title for non-english movies (it will use TMDB API to get title).
    If you don't want this, just open script in notepad and do search for:

    bool tryEng = true;

    and change it to:

    bool tryEng = false;


    07.03.2011
    Show Spoiler

    Small ENG title bug fix

    09.03.2011
    Show Spoiler

    Wrong title characters encoding fix, role cleaned from non wanted txt

    11.01.2012
    Show Spoiler

    Fixed scripts according to new html changes in IMDB


     

    Attached Files:

    • IMDB.rar
      File size:
      6.5 KB
      Uploaded:
      January 11, 2012
      Views:
      220
    • IMDB_MP12x.rar
      File size:
      6.3 KB
      Uploaded:
      January 11, 2012
      Views:
      250
    • Like Like x 3
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Small update (cosmetic fix in cast and roles, unwanted spaces removed).
     
  4. xvffx

    xvffx Portal Pro

    Joined:
    August 15, 2007
    Messages:
    313
    Likes Received:
    31
    Ratings:
    +43 / 0
    Home Country:
    Canada Canada
    thanks Deda,

    I was wondering when 1.2.0 is out, do we use this or click the update from the config?

    Don't want to miss out all your neat features by using the wrong one :)


    Vff
     
  5. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Ofc goal is to use update from config, but I just need to resolve MP version compatibility issue (maybe to use MP version check in script to skip new features for old MP). Surely, will be ready when 1.2.0 became official.
     
  6. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Exception fix in movie run-time parsing.
     
  7. ysmp
    • Team MediaPortal

    ysmp Design Group

    Joined:
    May 17, 2008
    Messages:
    1,860
    Likes Received:
    700
    Gender:
    Male
    Location:
    Seoul.
    Ratings:
    +789 / 1
    Home Country:
    South Korea South Korea
    hi Deda ! how are you ?

    i will like to mod the scrrpt a little bit , and i dont know if it's o,k to use this trhed ....?

    things i like to mod :
    1. like to get 1 director .
    2. like to get 1 writer .
    3. like to get only (G,PG,PG-13,R) in mpaa rating feild ,only the pg-13 with no contry (like now USA PG-13)
    4.like to cancle user review .
    5.like to get the sort summry , as i know IMDB web they have what they call sort summry and long summry ,(i dont means tagline)
    the sort summry is in the main page ..usly 2~3 line of summry .
    6. in Gener i like to chage the / bitwin the gener to , (now Action / Drama to be Action , Drama )

    if you can give me some info abut wich lines to change ...i'm sure i can do it my self ...

    Thanks in adveance ....:)

    Edit : can cancle no. 6 (i play with the script and find wher to do it ... :) ... 5 more things to go ....
     
  8. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Just wait a little, I'm doing little changes in script so it can be compatible with all versions of MP, also rating will be USA as default if user country rating isn't listed (little team discussion). User review is separated from plot in version 1.2.0 Beta (new button in Movie Info screen).

    For q 1 and 2 it's not easy to answer you really need to do it by yourself (need some regex knowledge and little C# coding skill).

    For q 5 there short summary is already inside script and the database:

    Code (Text):
    1.  
    2. // Plot short
    3. regexPattern =
    4.         @"<h5>Plot:</h5>[^>]+>\s+?(?<moviePlotShort>.+?)(?: \|)?\s+?<a|Users:.*?<p>(?<moviePlotShort>.+?)</p>";
    5. string shortPlot = Regex.Match(strBody, regexPattern, RegexOptions.Singleline).Groups["moviePlotShort"].Value;
    6. movieDetails.PlotOutline = HttpUtility.HtmlDecode(Utils.stripHTMLtags(shortPlot));
    7.  
     
    • Like Like x 1
  9. ysmp
    • Team MediaPortal

    ysmp Design Group

    Joined:
    May 17, 2008
    Messages:
    1,860
    Likes Received:
    700
    Gender:
    Male
    Location:
    Seoul.
    Ratings:
    +789 / 1
    Home Country:
    South Korea South Korea

    hi Deda ! i'm little confuse .... right now the code in skin file for summry is #plot (wich is the longer summry)

    so what will be the code for short plot ?? i try #shortplot and #plotshort but non of them work ..

    is thir a skin id's and lable list ,for my videos plugin ? i serch but canot find ...
     
  10. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Try #plotoutline.
    Skin control id's for movie info screen is the following (from GUIVideoInfo.cs):

    Code (Text):
    1.  
    2.     [SkinControl(2)] protected GUIButtonControl btnPlay = null;
    3.     [SkinControl(3)] protected GUIToggleButtonControl btnPlot = null;
    4.     [SkinControl(4)] protected GUIToggleButtonControl btnCast = null;
    5.     [SkinControl(5)] protected GUIButtonControl btnRefresh = null;
    6.     [SkinControl(6)] protected GUIToggleButtonControl btnWatched = null;
    7.     [SkinControl(7)] protected GUIToggleButtonControl btnReview = null; // Valid for v 1.2.0 and above
    8.     [SkinControl(10)] protected GUISpinControl spinImages = null;
    9.     [SkinControl(11)] protected GUISpinControl spinDisc = null;
    10.     [SkinControl(20)] protected GUITextScrollUpControl tbPlotArea = null;
    11.     [SkinControl(21)] protected GUIImage imgCoverArt = null;
    12.     [SkinControl(22)] protected GUITextControl tbTextArea = null;
    13.     [SkinControl(23)] protected GUITextScrollUpControl tbReviwArea = null;
    14.     [SkinControl(30)] protected GUILabelControl lblImage = null;
    15.     [SkinControl(100)] protected GUILabelControl lblDisc = null;
    16.  
    and all defined properties (from IMDBMovie.cs)::

    Code (Text):
    1.  
    2.      GUIPropertyManager.SetProperty("#director", Director);
    3.       GUIPropertyManager.SetProperty("#genre", Genre);
    4.       GUIPropertyManager.SetProperty("#cast", Cast);
    5.       GUIPropertyManager.SetProperty("#dvdlabel", DVDLabel);
    6.       GUIPropertyManager.SetProperty("#imdbnumber", IMDBNumber);
    7.       GUIPropertyManager.SetProperty("#file", File);
    8.       GUIPropertyManager.SetProperty("#plot", Plot);
    9.       GUIPropertyManager.SetProperty("#plotoutline", PlotOutline);
    10.       GUIPropertyManager.SetProperty("#userreview", UserReview);  // Valid for v 1.2.0 and above
    11.       GUIPropertyManager.SetProperty("#rating", Rating.ToString());
    12.       GUIPropertyManager.SetProperty("#tagline", TagLine);
    13.       GUIPropertyManager.SetProperty("#votes", Votes);
    14.       GUIPropertyManager.SetProperty("#credits", WritingCredits);
    15.       GUIPropertyManager.SetProperty("#thumb", strThumb);
    16.       GUIPropertyManager.SetProperty("#title", Title);
    17.       GUIPropertyManager.SetProperty("#year", Year.ToString());
    18.       GUIPropertyManager.SetProperty("#runtime", RunTime.ToString());
    19.       GUIPropertyManager.SetProperty("#mpaarating", MPARating);
    20.       string strValue = "no";
    21.       if (Watched > 0)
    22.       {
    23.         strValue = "yes";
    24.       }
    25.       GUIPropertyManager.SetProperty("#iswatched", strValue);
    26.  
    But this should be discussed somewhere else because it's more skin related then script changes :).
     
    • Like Like x 1
  11. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    I'm thinking...could we empty the #iswatched string for folders? It doesn't make much sense anyways :)
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!