NFO Metadata Extractor plugin

Discussion in 'Plugin Development' started by hafblade, September 3, 2012.

  1. hafblade

    hafblade Portal Pro

    Joined:
    January 19, 2011
    Messages:
    675
    Likes Received:
    145
    Location:
    Trier, Germany
    Ratings:
    +146 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi and hello,

    I want to present my first version of my newly created NFO metadata extractor.
    It's really a first alpha release so don't expect wonders.

    What does this plugin do?
    The plugin is a new extractor for MediaPortal 2. It searches for NFO files which look like defined in the XBMC wiki.
    In a NFO file meta data for your movies / series / music videos can be saved so that you don't have to rescrape all your data again. My NFO extractor gives the possibility to retrieve this data from NFO files and write them into your MediaPortal 2 server database.

    At the moment the following file types are supported: ts mkv avi mp4 mpeg mpg flv
    All other file types especially DVD folders etc. are not supported yet.



    How can I install this in my MediaPortal 2 environment?
    The plugin is divided into three single plugins:
    - NfoMovieMetadataExtractor
    - NfoSeriesMetadataExtractor
    - NfoMusicVideoMetadataExtractor

    To install this plugin only extract the files from the "Nfo Extractors v0_1 Alpha.zip" attachment and copy the folders into your plugins folder in your MediaPortal 2 server folder.


    How can I use the extractor?
    Create new shares in your MediaPortal 2 user interface and select Movie/Series/Video as Media Aspects.
    After some searching on your harddrive the data will be included in your database.


    Are there screenshots?
    No. Due to the fact that this plugin is working in the background of your server nothing can be screenshoted here. :)


    Feedback?
    Sure! I would love to get some feedback. Test it like hell and write what worked and what didn't.

    Updates:
    • 2013-10-04: Added sources and binaries for a MP2-Alpha 3 compatible version [morpheus_xx]. Not tested, please post your results here!
     

    Attached Files:

    Last edited by a moderator: October 4, 2013
    • Like Like x 5
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    10,853
    Likes Received:
    4,680
    Ratings:
    +6,704 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Thank you very much for you development! It's really great to see more devs working on MP2 :) (y)

    I'll take a look on the sources when I find a bit more time (I'm afraid this will be next week :()
     
  4. hafblade

    hafblade Portal Pro

    Joined:
    January 19, 2011
    Messages:
    675
    Likes Received:
    145
    Location:
    Trier, Germany
    Ratings:
    +146 / 0
    Home Country:
    Germany Germany
    Show System Specs
    No problem. I'll do some changes this week so that it's possible to import dvd folder nfos and to import multi episode nfo files. Furthermore I'll change some formatting issues in the code due to the fact that it looks like java-style at the moment. ;-)
     
  5. chefkoch
    • Team MediaPortal

    chefkoch Retired Team Member

    Joined:
    October 5, 2004
    Messages:
    3,130
    Likes Received:
    1,456
    Gender:
    Male
    Location:
    Dresden / Munich / Maastricht
    Ratings:
    +1,773 / 1
    Home Country:
    Germany Germany
    Hi Halfblade thanks for your work to add support for reading the xbmc nfo files to MP2.

    I did a first test. Attached you can find the content of my test directories, except the video files. I also attached my log files.

    I only tested the movie feature for now. First the good thing :) The year of the movies has been read correctly.
    years.png
    • At the beginning I wanted to remove the OnlineLibraries plugin from MP2 to prevent the Online Lookup, but I checked the Nfo*plugin's requirements before and noticed it depends on OnlineLibraries.
      For which components it this DLL needed? Might there be any other way to completely disable the online lookup now? (I know it should be possible to configure all those things later, but this should not be part of the discussion now nor it is part of the tests I do)
    • The movie titles does not seem to be read from the nfo files, nor the posters or backdrops are used from the folders.
      titles.png
    • The actors aren't read.
      actors.png
    • A genre "/" has been added, even if this character is used only as a separator,
     

    Attached Files:

    • nfo-files.zip
      File size:
      5.4 MB
      Uploaded:
      September 5, 2012
      Views:
      240
    • 1st test.zip
      File size:
      327 KB
      Uploaded:
      September 5, 2012
      Views:
      196
    Last edited: September 5, 2012
  6. hafblade

    hafblade Portal Pro

    Joined:
    January 19, 2011
    Messages:
    675
    Likes Received:
    145
    Location:
    Trier, Germany
    Ratings:
    +146 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi Chefkoch,

    Pictures:
    At the moment the Online library is used for downloading the cover / poster / fanart pictures. My scraper only reads NFO files at the moment.
    This will change in the next release. I talked about this with Morpheus and it seems that I have to change some further things so that it is also possible to read pictures as banner files etc.

    Genre:
    At the moment the logic is so that the genre strings are only divided by SPACES and these genres are taken as genres in MediaPortal. Perhaps I should tune this logic ;)

    Other data:
    For the other data I'll do some tests with your NFO files and than I'll put the changes in the next release.

    Thank you for your testing. I'll have a look at it today. :)
     
  7. hafblade

    hafblade Portal Pro

    Joined:
    January 19, 2011
    Messages:
    675
    Likes Received:
    145
    Location:
    Trier, Germany
    Ratings:
    +146 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi Chefkoch,

    some further question. I've looked at your NFO files and haven't found any actor tags in it. Do you want the ones from the credits tag? There are only a few entries in it. This wouldn't be correct I think.
     
  8. chefkoch
    • Team MediaPortal

    chefkoch Retired Team Member

    Joined:
    October 5, 2004
    Messages:
    3,130
    Likes Received:
    1,456
    Gender:
    Male
    Location:
    Dresden / Munich / Maastricht
    Ratings:
    +1,773 / 1
    Home Country:
    Germany Germany
    oops, that I wanted to check before posting it, but unfortunately forgot to do it. sorry, I'll fix the nfo files.



    In xbmc's wiki each item of a multi-item list (genre, style, actors...) has it's own xml node. So I guess I also have to recheck my info files against this.

    In my opinion, we should support the standard first, and maybe use workarounds, like having all genre in one xml node, later.


    Splitting the genre by space only, might also split one genre into two for some languages. Like written above separating might not be needed when having proper nfo files.
     
  9. hafblade

    hafblade Portal Pro

    Joined:
    January 19, 2011
    Messages:
    675
    Likes Received:
    145
    Location:
    Trier, Germany
    Ratings:
    +146 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi Chefkoch,

    in one of my scrapers I already use the possibility to have more than one genre tag and furthermore I split there for space , . / \ and so on.
    I'll add this to every scraper and throw the space separation out. You are completely right that this is no good idea for entries like "Science fiction" etc.
     
  10. chefkoch
    • Team MediaPortal

    chefkoch Retired Team Member

    Joined:
    October 5, 2004
    Messages:
    3,130
    Likes Received:
    1,456
    Gender:
    Male
    Location:
    Dresden / Munich / Maastricht
    Ratings:
    +1,773 / 1
    Home Country:
    Germany Germany
    I used Ember MediaManager to create the nfo files, but it does store all lists in one node with separators instead of separated nodes.

    for documentation and reference:
    http://forum.xbmc.org/showthread.php?tid=40885
    http://ember.purplepig.net/issues/52

    Any other recommendations for nfo editors to prevent modifying them completely manually?
     
    Last edited: September 6, 2012
  11. hafblade

    hafblade Portal Pro

    Joined:
    January 19, 2011
    Messages:
    675
    Likes Received:
    145
    Location:
    Trier, Germany
    Ratings:
    +146 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Normally I also use EmberMediaManager. For me it's the best solution but I don't have any multi episode files. You could perhaps abuse xbmc for it but you have to use the file naming of xbmc (see xbmc wiki). Perhaps it could work also with ember with xbmc naming conventions.
     
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!