UK IMDb Scraper

Discussion in 'Moving Pictures' started by Mew, December 13, 2009.

  1. Mew

    Mew Portal Pro

    Joined:
    January 11, 2007
    Messages:
    353
    Likes Received:
    55
    Gender:
    Male
    Occupation:
    COBOL/DB2 IBM z/Series Mainframe Developer
    Location:
    Hertfordshire
    Ratings:
    +56 / 0
    Home Country:
    England England
    Show System Specs
    Hi

    With the new filtering in Moving Pictures it became apparent that the certification was based on the Motion Picture Association of America film rating system. As I live in the UK this does not mean a lot to me or my family. I couldn't find a UK scraper on the boards (although I may have missed it) so I therefore decided to produce an edited version of the scraper which retrieves cerification based on the British Board of Film Classification.

    From a technical perspective, as this is the only change I have made, I kept the version numberin line with the US version. I have incremented the ID by one to make it unique, meaning both the original IMDb.com and the IMDb.com(UK)scrapers can be loaded at the same time.

    I have also cobbled together some category icons to use until someone with more talent than me produces something better. They can be found here: https://forum.team-mediaportal.com/moving-pictures-284/category-image-exchange-74382/index2.html#post547291



    I thought I would share it as it may be of help to someone else.

    Mew
     

    Attached Files:

    • IMDb(UK).xml
      File size:
      30.6 KB
      Uploaded:
      December 13, 2009
      Views:
      269
    • Like Like x 9
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. trekkiedj

    trekkiedj Portal Pro

    Joined:
    August 7, 2009
    Messages:
    80
    Likes Received:
    0
    Location:
    Cirencester
    Ratings:
    +0 / 0
    Home Country:
    United Kingdom United Kingdom
    Great idea... i have been pondering how to get the UK certs....

    One question though, how do i get this to work? do i plonk it somewhere in the mediaportal directory or something else?:D
     
  4. Mew

    Mew Portal Pro

    Joined:
    January 11, 2007
    Messages:
    353
    Likes Received:
    55
    Gender:
    Male
    Occupation:
    COBOL/DB2 IBM z/Series Mainframe Developer
    Location:
    Hertfordshire
    Ratings:
    +56 / 0
    Home Country:
    England England
    Show System Specs
    Hi trekkiedj

    It took me a little while (and a bit of searching) to find this out as it is a little hidden (mostly the part in step 6).

    You need to:
    1. Copy the .xml file a directory (I don't believe it matters where).
    2. Open "MediaPortal - Configuration", go to the "plugins" and select "Moving Pictures" and "Config".
    3. Select the "Importer Settings" tab
    4. In the "Data Sources:" section select the "Manually manage movie data sources" radio button
    5. Click the "Movie Details Data Sources" button
    6. In the popup click the arrow just to the right of the "+" button and pick "Add a New Data Source"
    7. Browse to the new .xml scraper and click OK
    8. It should appear as imdb.com(UK) in the "Source column. You may need to enable it by pressing the "+" button if it is greyed out and move it to the top of the list using the green arrows if you want it to be the first scraper used. The standard imdb.com scraper should remain in the list if you wish to revert to it.

    Mew
     
    • Like Like x 5
  5. TheBiGW

    TheBiGW Portal Member

    Joined:
    October 1, 2009
    Messages:
    43
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    United Kingdom United Kingdom
    This is really cool. Is there a way to re-scan the movie DB and update the ratings with the UK ones after enabling this scraper?
     
  6. fforde

    fforde Community Plugin Dev

    Joined:
    June 7, 2007
    Messages:
    2,666
    Likes Received:
    1,690
    Occupation:
    Software Engineer
    Location:
    Texas
    Ratings:
    +1,696 / 0
    Home Country:
    United States of America United States of America
    You can update all movie details for a set of movies, but there is no way to update just one field in bulk. To update all movie details though, goto the Movie Manager, select all the movies in the list (hold the SHIFT key while clicking). Then click the drop down for the refresh button (click the down arrow NOT the button itself!). Then select "Refresh from IMDb (UK)".
     
    • Like Like x 2
  7. TheBiGW

    TheBiGW Portal Member

    Joined:
    October 1, 2009
    Messages:
    43
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    United Kingdom United Kingdom
    Awesome. Just awesome. Thanks again!
     
  8. TheBiGW

    TheBiGW Portal Member

    Joined:
    October 1, 2009
    Messages:
    43
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    United Kingdom United Kingdom
    Since the main scraper has been updated to version 1.4 I've updated the UK scraper to the same version.

    Credits go to Mew for the original code of course.
     

    Attached Files:

  9. digmaster

    digmaster Portal Member

    Joined:
    September 7, 2009
    Messages:
    19
    Likes Received:
    4
    Occupation:
    Lighting Technician
    Location:
    Amsterdam, NL
    Ratings:
    +4 / 0
    Home Country:
    England England
    Nice work guys.

    Here's the UK and IE certification logos

    :D
     

    Attached Files:

    • Like Like x 1
  10. Surferosa

    Surferosa Portal Pro

    Joined:
    September 2, 2009
    Messages:
    55
    Likes Received:
    5
    Ratings:
    +5 / 0
    Home Country:
    England England
    Thanks for this.. very handy
     
  11. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,205
    Likes Received:
    1,320
    Ratings:
    +1,712 / 2

    Attached Files:

    • Like Like x 1
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!