Rename database problem (+ How to read logs)

Discussion in 'IMDb+' started by NightOwl69, December 12, 2011.

  1. NightOwl69

    NightOwl69 Portal Member

    Joined:
    September 4, 2007
    Messages:
    18
    Likes Received:
    2
    Ratings:
    +2 / 0
    Using 4.0.3 I put an nfo file in a movie directory to ensure the correct imdb reference is found for that movie. The nfo only has the following entry in it:
    Code (Text):
    1. "http://www.imdb.com/title/tt0253754/"
    When the movie is imported it no longer uses the entries in "Rename dBase IMDb+ Scraper.xml" which has the following entry instead it uses the title from IMDb "Star Trek: Nemesis".
    Code (Text):
    1. <rename id="tt0253754" title="Star Trek X: Nemesis" sortby="Star Trek 10" />
    Is this by design? I personally would rather it continued to use the rename database.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,243
    Likes Received:
    1,339
    Ratings:
    +1,748 / 2
    Re: IMDb+ Scraper - Movie Scraping on Steroids v4.0.3

    You movingpictures.log file will show exactly what happened. I also made sure that you do not even need to enable 'debug' log mode inside MediaPortal to know what happened.

    Log mode lines:

    CORRECT = "IMDb+ Scraper: Settings overruled via Options XML file"

    FAILURE = ""IMDb+ Scraper Notice: No XML file found for options, default values are used"

    OPTIONALLY CORRECT = ""IMDb+ Scraper: [LANGUAGE] ([SITE]) used for some data on: tt0499549"

    OPTIONAL WARNING = "IMDb+ Scraper WARNING: English summary used, because no foreign one exists for: tt0499549"

    FAILURE DETECTION = "IMDb+ Scraper ERROR: Math node test FAILED - Forcing Single Score system"

    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node test FAILED - Forcing imdb.com score (MetaScore disabled)"
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node test FAILED - Forcing RottenTomatoes critics score (Audience disabled)"
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node test FAILED - Forcing RottenTomatoes critics average rating (Percentile disabled)"
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node bug #1 detected on &lt;divide&gt; node."
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node bug #2 detected on &lt;divide&gt; node."
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node bug #3 detected on &lt;divide&gt; node."
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node bug #4 detected on &lt;divide&gt; node."
    FAILURE OPTIONAL = "IMDb+ Scraper ERROR: Math node bug #5 detected on &lt;divide&gt; node."

    CORRECT = "IMDb+ Scraper: Title adjusted via Default Rename XML for: tt0499549"
    CORRECT = "IMDb+ Scraper: Title adjusted via Custom Rename XML for: tt0499549"
    OPTIONALLY CORRECT = "IMDb+ Scraper: SortBy adjusted via Default Rename XML for: tt0499549"
    OPTIONALLY CORRECT = "IMDb+ Scraper: SortBy adjusted via Custom Rename XML for: tt0499549"

    OPTIONALLY CORRECT (Requires DEBUG mode) = "IMDb+ Scraper: Roman Numeral stripped for 'The Transporter' being first movie in the series"

    FAILURE = "IMDb+ Scraper ERROR: Default Rename XML file has more then one entry for: tt0499549"
    FAILURE = "IMDb+ Scraper ERROR: Custom Rename XML file has more then one entry for: tt0499549"

    FAILURE = "IMDb+ Scraper ERROR: Aborting details node, movie.site_id is empty"

    SEARCH NODE (Requires DEBUG mode) = "IMDb+ Scraper: Forcing match via the IMDb tt-ID found in filename: [tt0499549]"

    SEARCH NODE (Requires DEBUG mode) = "IMDb+ Scraper: Direct match found for [tt0499549] as: 'Avatar (2009)'"

    SEARCH NODE (Requires DEBUG mode) = "IMDb+ Scraper: Forcing title as '[Bla Bla]' to make auto-approve work and then we fix title later"


    Then you can also enable scraper-debug mode (special mode) to see the entire scraper function step by step in detail. Since this will lead to roughly 1-2MB *PER* movie worth of log file the above info and debug log lines were put in place to make it possible to still see exactly what is going on without leading to enourmous log files.

    Note: Keep in mind that MovingPictures works asynchrone by default. Meaning if you import 3 movies at the same time, your log file might look like:

    Log line movie #1
    Log line movie #2
    Log line movie #1
    Log line movie #2
    Log line movie #1
    Log line movie #3
    Log line movie #2
    Log line movie #3
    Log line movie #3​

    Mixed in you might also see other log lines from other tasks that MovPic does, such as the initial startup stuff to verify missing MediaInfo and Follw.it details. If you do have troubles the best way is to wait between MovPic startup and you beginning your tests to ensure all the init stuff is done (I usually delete the movingpictures.log file and wait 3-secs to see if a new one is created), and to only import (or refresh/reimport) just one movie. You can also adjust the advanced 'Thread' setting to 1, but this will serverly slow down the import process during regular usage, so manually importing just one movie is easiest.

    PS: It also helps running MediaPortal in windowed mode during testing, so that you can have Windows Explorer open to look at log file/etc. You can also use the PluginConfigLoader.exe tool to directly launch MovPic config without having to open MediaPortal config. Search the forum for the full command if this interests you.

    Long story short to debug your issue, turn on debug mode in MediaPortal config, and re-import your movie in MovPic. The movingpictures.log file should then contain the following line(s):

    • IMDb+ Scraper: Direct match found for [tt0253754] as: 'Star Trek: Nemesis (2002)'
    • IMDb+ Scraper: Settings overruled via Options XML file
    • IMDb+ Scraper: Title adjusted via Default Rename XML for: tt0253754
    • IMDb+ Scraper: SortBy adjusted via Default Rename XML for: tt0253754

    This is of course assuming you do infact have the rename+group option enabled :)

    If you still have trouble debugging this yourself, enable debug mode and provide me with the full movingpictures.log file and I'll do it for ya.
     
    • 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!