Renaming files with Moving Pictures | Page 2

Discussion in 'Moving Pictures' started by cooper2k4, February 12, 2011.

  1. ejvdh

    ejvdh Portal Member

    Joined:
    February 26, 2010
    Messages:
    24
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Thanks, RoChess. Yes I'm using imdb+ and also the renamed movies (for grouping for example) don't get through in many cases.



    'Only Auto Approve from Primary Data Source' was true already. Changing 'Data Provider Request Limit' to 1 didn't make a lot of difference. Also with auto-approval rate on 'reckless' many movies do not auto-approve, including 'Batman III Batman Forever (1995) [tt0112462]' (renamed via imdb+). The strange thing is when you select 'rescan with custom search string' the name and year will be filled in, but imdb-id field is blank, even though it's in the title. It seems like the imdb-id is ignored.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    With just that single movie, do you mind retrying the import, with MediaPortal running in debug-mode?

    When I do the same I see the following in my movingpictures.log file:


    06-Nov-2011 08:04:05 Info [ MovieImporter]: Watcher queued Batman III Batman Forever (1995) [tt0112462].avi for processing.
    06-Nov-2011 08:04:06 Debug [VideoFormatExtension]: Identifier: Path='D:\Batman III Batman Forever (1995) [tt0112462].avi', Format='File', Hash='0000000000000000'
    06-Nov-2011 08:04:09 Debug [ ImdbBuilder]: Lookup Imdbid=tt0112462: Title='Batman Forever', Year=1995
    06-Nov-2011 08:04:09 Debug [ DataProviderManager]: SEARCH: Title='Batman Forever', Provider='IMDb+', Version=3.3.7, Number of Results=1

    And it clearly finds and uses the IMDb tt-ID from the filename and then goes on to get the rest of the info.
     
  4. ejvdh

    ejvdh Portal Member

    Joined:
    February 26, 2010
    Messages:
    24
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    This is what it says:
    <see attached file>

    IMDb id is not recognised for some reason.

    Thanks
     
  5. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    Yes, for some reason the ImdbBuilder log line is not present for you.


    07-Nov-2011 20:42:04 Debug [ DBImportPath]: New File: Batman III Batman Forever (1995) [tt0112462].avi
    07-Nov-2011 20:42:09 Debug [VideoFormatExtension]: Identifier: Path='F:\Media\Movies\Batman III Batman Forever (1995)\Batman III Batman Forever (1995) [tt0112462].avi', Format='File', Hash='b2d937333b2dd8a3'
    07-Nov-2011 20:42:12 Debug [ DataProviderManager]: SEARCH: Title='Batman III Batman Forever', Provider='IMDb+', Version=3.3.7, Number of Results=18

    Above are the relevant log lines from your test, and it is missing the very important:

    07-Nov-2011 20:42:xx Debug [ ImdbBuilder]: Lookup Imdbid=tt0112462: Title='Batman Forever', Year=1995 ​

    This is however done by the MovingPictures plugin.

    You only provided a small part of the log file, or sometimes the other stuff ends up in movingpictures.old.log, either way I can not find the exact version of MovingPictures that you are running. So please verify it is at least: "Info [ MovingPicturesCore]: Moving Pictures (1.2.3:1329)"

    What I could do however is modify the IMDb+ scraper-script and see if any tt\d{7} number is still present inside the filename and use that as IMDb tt-ID if the ImdbBuilder failed. But I'm more curious (and I'm sure so is the MovingPictures developer) in the 'why' on the failure, because it is supposed to just work.

    Is that (F) drive a share, or anything else out of the ordinary? There are some issues with network shares are drive letters, if you adjust MovPic to use \\UNC share-name, that should eliminate a lot of weird side effects.
     
  6. llambion

    llambion Portal Pro

    Joined:
    January 20, 2009
    Messages:
    92
    Likes Received:
    18
    Gender:
    Male
    Location:
    Oviedo
    Ratings:
    +18 / 0
    Home Country:
    Spain Spain
    Show System Specs
    I'd like rename my films like

    \film name [year][video resolution][part].xxx

    can i add to name the file resolution (SD,720p,1080)???

    I tried with ${movie.videoresolution} but i don't work for me...

    can anybody helps me??

    :D
     
  7. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    That used to work, but function got disabled in one of the revisions to the rename system.

    For now you can use 'most' of the values that scraper-scripts deal with as well as per:

    Scraper Engine - Moving Pictures

    But you'll have to wait for them to revamp the code on the rename system again to support all fields.
     
  8. llambion

    llambion Portal Pro

    Joined:
    January 20, 2009
    Messages:
    92
    Likes Received:
    18
    Gender:
    Male
    Location:
    Oviedo
    Ratings:
    +18 / 0
    Home Country:
    Spain Spain
    Show System Specs
    thank you for your response.

    I'll wait to rename my files or try to rename any files manually.

    :D
     
  9. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    You can do it semi-automatic.

    Let MovPic rename your files to include IMDb tt-ID, and generate a "dir *.avi, *.mkv /ogn/b/s > dir_result.txt" output

    Then use one of the offline list generator methods that you can find on the forum to create a list that contains the info you want to use.

    Using Excel or other means you can then tweak things to create a a simple batch file that will rename the dir result to the result you want. Using the IMDb tt-ID you can match both results up.
     
  10. ejvdh

    ejvdh Portal Member

    Joined:
    February 26, 2010
    Messages:
    24
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Think I cracked it. I changed the setting 'prefer folder name for movie matching' to 'false' and voila, everything gets auto-approved. The renaming as per the example in this thread adds the imdb-id to the file name, but not the folder name, so apparently this setting needs to be changed.

    Thanks for your help!
     
  11. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    That makes sense, what I will do however is make an enhancement to IMDb+ scraper script, that if ${search.imdb_id} is empty, but the filename contains a compatible one, that I'll override the system and use it as-is. Because there is bound to be a user in the future that will have that setting still enabled in combination with files having the correct IMDb tt-ID via renaming their collection.

    You can also use the 'Directory Rename Pattern' advanced option and add the ${movie.imdb_id} to that as well, but it will be a small adjustment to the scraper-script to support the other way as well.
     
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!