NFO Metadata Extractor plugin | Page 2

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

  1. chefkoch
    • Premium Supporter

    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
    When using a proper nfo file, actors and genres are imported nicely :) good work.
    So the plugin is working good already.



    The split of genre and other list by ' / ' would be good to increase emberMM compatibility. (source: #1)
    For boxee compatibility splitting by ',' would be good aswell. (source: #1 #2 )

    @morpheus_xx How much work is it to extend the media plugin with much more metadata and appropriate filters on the menu bar. Even if those filters and the presentation needs to be done in a proper way, it would be nice to test all features of those metadata extractors.
    Code (Text):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    3.   <id>tt0381061</id>
    4.   <title>James Bond 007: Casino Royale</title>
    5.   <originaltitle>Casino Royale</originaltitle>
    6.   <year>2006</year>
    7.   <country>United States of America</country>
    8.   <country>United Kingdom</country>
    9.   <country>Italy</country>
    10.   <country>Czech Republic</country>
    11.   <rating>8.5</rating>
    12.   <votes>67</votes>
    13.   <mpaa>Rated PG-13</mpaa>
    14.   <genre>Action</genre>
    15.   <genre>Drama</genre>
    16.   <genre>Thriller</genre>
    17.   <studio>MGM</studio>
    18.   <director>Martin Campbell</director>
    19.   <credits>Neal Purvis</credits>
    20.   <credits>Robert Wade</credits>
    21.   <plot>Sein erster Auftrag, nachdem er die Lizenz zum Töten erhalten hat, führt den MI6-Agenten James Bond (Daniel Craig) nach Madagaskar, wo er auf den Terroristen Mollaka (Sebastian Foucan) angesetzt wird. Zwar verläuft nicht alles nach Plan, doch als Bond auf eigene Faust weiter ermittelt kommt er auf die Spur von Le Chiffre (Mads Mikkelsen), dem Bankier einer weltweit operierenden Terror-Organisation. Dieser plant, das Vermögen seiner Organisation durch ein illegales Pokerspiel im „Casino Royale“ von Montenegro um ein vielfaches zu erhöhen, wofür natürlich auch ein hoher Einsatz nötig ist. Der MI6 sieht daher die Chance, die Terroristen in den finanziellen Ruin zu treiben und beauftragt James Bond, die Pläne von Le Chiffre zunichte zu machen.</plot>
    22.   <runtime>144</runtime>
    23.   <playcount>0</playcount>
    24.   <actor>
    25.     <name>Daniel Craig</name>
    26.     <role>James Bond</role>
    27.     <thumb />
    28.   </actor>
    29.   <actor>
    30.     <name>Eva Green</name>
    31.     <role>Vesper Lynd</role>
    32.     <thumb />
    33.   </actor>
    34.   <actor>
    35.     <name>Mads Mikkelsen</name>
    36.     <role>Le Chiffre</role>
    37.     <thumb />
    38.   </actor>
    39.   <actor>
    40.     <name>Jeffrey Wright</name>
    41.     <role>Felix Leiter</role>
    42.     <thumb />
    43.   </actor>
    44.   <thumb>http://cf2.imgobject.com/t/p/w185/g3ICXh09CWUfYEUU6ITyDyNuPWy.jpg</thumb>
    45.   <thumb>http://cf2.imgobject.com/t/p/w185/cbRcaCSFWxk4AC3mZ9vu6J6wQsT.jpg</thumb>
    46.   <thumb>http://cf2.imgobject.com/t/p/w185/x65b4vsFKYuA878pLN1mJiAsgIP.jpg</thumb>
    47.   <thumb>http://cf2.imgobject.com/t/p/w185/1P2SaV8mXFPn1jYD166KV0SWp8J.jpg</thumb>
    48.   <thumb>http://cf2.imgobject.com/t/p/w185/6iMHYf3FwgPcoYVPmJ07wlpsv5X.jpg</thumb>
    49.   <thumb>http://cf2.imgobject.com/t/p/w185/8Pc0QU0ZQBOBGicivQy7IdwOaby.jpg</thumb>
    50.   <thumb>http://cf2.imgobject.com/t/p/w185/uOlK5rqGzspNeHmamFGPjPxUq2a.jpg</thumb>
    51.   <thumb>http://cf2.imgobject.com/t/p/w185/94cwe0OqY3OYOnlrNZdTLOG1BSh.jpg</thumb>
    52.   <thumb>http://cf2.imgobject.com/t/p/w185/6dfVQ9vBG2xJ6W5DYbKpv6iyApO.jpg</thumb>
    53.   <thumb>http://cf2.imgobject.com/t/p/w185/fpj8GsEcK6sMQtUbN5rHPhOrOHg.jpg</thumb>
    54.   <thumb>http://cf2.imgobject.com/t/p/w185/sw3XmY2JFh6zVI94cCDCxwNNGEO.jpg</thumb>
    55.   <thumb>http://cf2.imgobject.com/t/p/w185/z7cCI8SByu2yyQG8yHdkHcB1BU0.jpg</thumb>
    56.   <thumb>http://cf2.imgobject.com/t/p/w185/e3zm4flFG0o2CRpypNjCyRK3hR1.jpg</thumb>
    57.   <thumb>http://cf2.imgobject.com/t/p/w185/aYdXGThjO5qDkH5BZsJ2HbEONpp.jpg</thumb>
    58.   <thumb>http://cf2.imgobject.com/t/p/w185/dVz5d4h6UjhC69GRqiuZP7FAsPo.jpg</thumb>
    59.   <thumb>http://cf2.imgobject.com/t/p/w185/mbfgbGY0ckW3bU0KB9vxg7mPJZd.jpg</thumb>
    60.   <thumb>http://cf2.imgobject.com/t/p/w185/tLIrbFY6gYzzJmkiqRLA07IBIe8.jpg</thumb>
    61.   <thumb>http://cf2.imgobject.com/t/p/w185/aZld9oBHx4CzhGfyIuUqoRKnXL6.jpg</thumb>
    62.   <thumb>http://cf2.imgobject.com/t/p/w185/bhGzViUledzEiZ2bmDmK1ai5g8Q.jpg</thumb>
    63.   <thumb>http://cf2.imgobject.com/t/p/w185/o5gow3crATrRVTQuy9e7T57bwmO.jpg</thumb>
    64.   <thumb>http://cf2.imgobject.com/t/p/w185/nNh9hTVLgBLfBEZLBJBeOVVlPr9.jpg</thumb>
    65.   <thumb>http://cf2.imgobject.com/t/p/w185/fKDtN5HLYOvur8EoCjYA4rpZACI.jpg</thumb>
    66.   <thumb>http://cf2.imgobject.com/t/p/w185/AlN7KOi04ci5oser7k4Bi6Ng2QH.jpg</thumb>
    67.   <thumb>http://cf2.imgobject.com/t/p/w185/ccmzrmx7JUWzD9RZTH0iZnnyTHY.jpg</thumb>
    68.   <thumb>http://cf2.imgobject.com/t/p/w185/EckxbrCYUz0OXhdtrDsuIRKmv4.jpg</thumb>
    69.   <thumb>http://cf2.imgobject.com/t/p/w185/iteaSDvUpN354pU4mwv1h9b103B.jpg</thumb>
    70.   <thumb>http://cf2.imgobject.com/t/p/w185/eMQc8PJmshJ8J38ZluNRFFcr2yN.jpg</thumb>
    71.   <thumb>http://cf2.imgobject.com/t/p/w185/bD4k7sCkbC304X1cqJSPcNlJZoO.jpg</thumb>
    72.   <thumb>http://cf2.imgobject.com/t/p/w185/1oErT0lCQngmMzGDTpPbwQAYVpG.jpg</thumb>
    73.   <thumb>http://cf2.imgobject.com/t/p/w185/ruhZ5PnyO0iNJjrIddJkaa1AG0Y.jpg</thumb>
    74.   <thumb>http://cf2.imgobject.com/t/p/w185/cMHmFqJzzJyJDv9JDFNoweLFc5R.jpg</thumb>
    75.   <thumb>http://cf2.imgobject.com/t/p/w185/60yfHQhTBsiMy6K7iFKRz0XeHBp.jpg</thumb>
    76.   <thumb>http://cf2.imgobject.com/t/p/w185/yU0pJMb6ZhRJ8IEVfIdQnTSfxnq.jpg</thumb>
    77.   <thumb>http://cf2.imgobject.com/t/p/w185/LKoLcjE3zYidY2lnMz0OvDWIKI.jpg</thumb>
    78.   <thumb>http://cf2.imgobject.com/t/p/w185/3cAcq91LwWE0ZsauFLppIoRGwrw.jpg</thumb>
    79.   <thumb>http://cf2.imgobject.com/t/p/w185/fttpImK7KWF7Eyb7PNfJw4Zban9.jpg</thumb>
    80.   <thumb>http://cf2.imgobject.com/t/p/w185/vdNU4ibhKcdZKoKn3Bx1qwDApPH.jpg</thumb>
    81.   <thumb>http://cf2.imgobject.com/t/p/w185/jDJeM2ZgVnF8FBO6N2X5LfNDnXB.jpg</thumb>
    82.   <thumb>http://cf2.imgobject.com/t/p/w185/wwa0gadid8jUiMGAkOSUAcTn07.jpg</thumb>
    83.   <thumb>http://cf2.imgobject.com/t/p/w185/bfxO19EPfHJAxAdfhfZMznjVRa0.jpg</thumb>
    84.   <thumb>http://cf2.imgobject.com/t/p/w185/ckcfah4BhDRuWBGZrZhb4SGPdmT.jpg</thumb>
    85.   <thumb>http://cf2.imgobject.com/t/p/w185/7mQSRKcajox52G5vv4i0PnHLmNd.jpg</thumb>
    86.   <thumb>http://cf2.imgobject.com/t/p/w185/15htbRhHjYDjO63c9JcQWlvzzlm.jpg</thumb>
    87.   <thumb>http://cf2.imgobject.com/t/p/w185/uzCXckuRaI6EXGXdYYyVhPEgbnk.jpg</thumb>
    88.   <thumb>http://cf2.imgobject.com/t/p/w185/fArFBMaFn76cvAM838n99a53xuu.jpg</thumb>
    89.   <thumb>http://cf2.imgobject.com/t/p/w185/AvCtatz9AUyoJL3RbhajcwEssio.jpg</thumb>
    90.   <thumb>http://cf2.imgobject.com/t/p/w185/rI9Ckr2NpAWHb6pkA7Grtb1YPW4.jpg</thumb>
    91.   <thumb>http://cf2.imgobject.com/t/p/w185/fvXFMH3z3ivA1Lmqdy7cnpB0X3Z.jpg</thumb>
    92.   <thumb>http://cf2.imgobject.com/t/p/w185/3tYreHHv3zdpEmIBykoLcc7gwvp.jpg</thumb>
    93.   <thumb>http://cf2.imgobject.com/t/p/w185/1pLOuv1hemlr6iBJxDFR1BU33Mr.jpg</thumb>
    94.   <fanart url="http://cf2.imgobject.com">
    95.     <thumb preview="/t/p/w300/xq6hXdBpDPIXWjtmvbFmtLvBFJt.jpg">http://cf2.imgobject.com/t/p/w300/xq6hXdBpDPIXWjtmvbFmtLvBFJt.jpg</thumb>
    96.     <thumb preview="/t/p/w300/9i4ig6dqUuBkCNHSFqd3GUXENlz.jpg">http://cf2.imgobject.com/t/p/w300/9i4ig6dqUuBkCNHSFqd3GUXENlz.jpg</thumb>
    97.     <thumb preview="/t/p/w300/ivdzxew6kDC0YEeYSkMmxFqHr9c.jpg">http://cf2.imgobject.com/t/p/w300/ivdzxew6kDC0YEeYSkMmxFqHr9c.jpg</thumb>
    98.     <thumb preview="/t/p/w300/zf4wg7oOUFe9OnCJN6Vji0cwI3U.jpg">http://cf2.imgobject.com/t/p/w300/zf4wg7oOUFe9OnCJN6Vji0cwI3U.jpg</thumb>
    99.     <thumb preview="/t/p/w300/xsmunNrjsQ5DeXCP9OFV9iQOsG9.jpg">http://cf2.imgobject.com/t/p/w300/xsmunNrjsQ5DeXCP9OFV9iQOsG9.jpg</thumb>
    100.     <thumb preview="/t/p/w300/dsC84A4BPIBGr0f9YnWOYNt4Nfw.jpg">http://cf2.imgobject.com/t/p/w300/dsC84A4BPIBGr0f9YnWOYNt4Nfw.jpg</thumb>
    101.     <thumb preview="/t/p/w300/qm1j9eSFd1w8loSdr27blWFyj70.jpg">http://cf2.imgobject.com/t/p/w300/qm1j9eSFd1w8loSdr27blWFyj70.jpg</thumb>
    102.     <thumb preview="/t/p/w300/5SWE9JmsMp7BvHUHj1Dpnk24F4N.jpg">http://cf2.imgobject.com/t/p/w300/5SWE9JmsMp7BvHUHj1Dpnk24F4N.jpg</thumb>
    103.     <thumb preview="/t/p/w300/vznGLJMF5HoHxAPFc85E2cQDq2F.jpg">http://cf2.imgobject.com/t/p/w300/vznGLJMF5HoHxAPFc85E2cQDq2F.jpg</thumb>
    104.     <thumb preview="/t/p/w300/nmEtNvJlS8y9gPkaSLcNpV6TaB3.jpg">http://cf2.imgobject.com/t/p/w300/nmEtNvJlS8y9gPkaSLcNpV6TaB3.jpg</thumb>
    105.     <thumb preview="/t/p/w300/gzqhV08ALVFGQ4MZKl6MMLugCW9.jpg">http://cf2.imgobject.com/t/p/w300/gzqhV08ALVFGQ4MZKl6MMLugCW9.jpg</thumb>
    106.     <thumb preview="/t/p/w300/7eLlugQ5L3fUikPiW99LvCjGF0W.jpg">http://cf2.imgobject.com/t/p/w300/7eLlugQ5L3fUikPiW99LvCjGF0W.jpg</thumb>
    107.     <thumb preview="/t/p/w300/j0c79xfLxzVKh2qPIjBPSYMVhoI.jpg">http://cf2.imgobject.com/t/p/w300/j0c79xfLxzVKh2qPIjBPSYMVhoI.jpg</thumb>
    108.     <thumb preview="/t/p/w300/iymk3kBrIevRrGBs24quhzCD0tG.jpg">http://cf2.imgobject.com/t/p/w300/iymk3kBrIevRrGBs24quhzCD0tG.jpg</thumb>
    109.     <thumb preview="/t/p/w300/4g9sMI4YOdLEIp1Nk6HdYKfQf2k.jpg">http://cf2.imgobject.com/t/p/w300/4g9sMI4YOdLEIp1Nk6HdYKfQf2k.jpg</thumb>
    110.   </fanart>
    111.   <fileinfo>
    112.     <streamdetails>
    113.       <audio>
    114.         <channels>6</channels>
    115.         <codec>ac3</codec>
    116.       </audio>
    117.       <video>
    118.         <aspect>2.412</aspect>
    119.         <codec>xvid</codec>
    120.         <durationinseconds>8312</durationinseconds>
    121.         <height>272</height>
    122.         <scantype>Progressive</scantype>
    123.         <width>656</width>
    124.       </video>
    125.     </streamdetails>
    126.   </fileinfo>
    127. </movie>
     

    Attached Files:

    • actors.png
      actors.png
      File size:
      508.4 KB
      Uploaded:
      September 6, 2012
      Views:
      167
    • genre.png
      genre.png
      File size:
      505 KB
      Uploaded:
      September 6, 2012
      Views:
      160
    • title.png
      title.png
      File size:
      489.9 KB
      Uploaded:
      September 6, 2012
      Views:
      175
    • year.png
      year.png
      File size:
      494.5 KB
      Uploaded:
      September 6, 2012
      Views:
      187
    Last edited: September 6, 2012
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,428
    Likes Received:
    2,505
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,169 / 13
    Home Country:
    France France
    Show System Specs
    Hi,Thx for your plugin.
    it's used only for import in database, or same feature as new Myvidéo ( MP1) ? read nfo on shared view without import ?
     
  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
    Hi Azzuro

    it runs over your share which you choose in MP2 and searches for nfo files.
    Than it uses these nfo files to extract your movie / series data and puts this data in your MP2 database to enrich your data.
    So it is used instead of scraping your data from the internet.

    It has no special user interface or something like this. Instead the MP2 graphical user interface is used.
    So it's a nfo scraper.
     
  5. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,428
    Likes Received:
    2,505
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,169 / 13
    Home Country:
    France France
    Show System Specs
  6. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,017
    Likes Received:
    4,750
    Ratings:
    +6,796 / 11
    Home Country:
    Germany Germany
    Show System Specs
    What is the current state of your plugin @hafblade? Will it be usable with the upcoming Autumn release? Then I would add the link into release notes as "additional plugin"...
     
  7. chefkoch
    • Premium Supporter

    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
  8. 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
  9. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,017
    Likes Received:
    4,750
    Ratings:
    +6,796 / 11
    Home Country:
    Germany Germany
    Show System Specs
    @hafblade , I made your plugins compatible with MP2-Alpha 3 and added sources+binaries to first post! I hope it's ok for you.

    I fixed some compile issues and made few optimizations. I didn't test the build, so I hope for much feedback here!
     
    • Great Idea! Great Idea! x 1
  10. Lehmden
    • Premium Supporter

    Lehmden Retired Team Member

    Joined:
    December 17, 2010
    Messages:
    11,850
    Likes Received:
    2,146
    Gender:
    Male
    Location:
    Lehmden
    Ratings:
    +3,618 / 28
    Home Country:
    Germany Germany
    Show System Specs
    Hi.
    Tested it with some movies. Did not work with NFO generated by the Tool MovPicNfo also they are proofed to be XBMC compatible...
    Series I will test next...
     
  11. cibu
    • Premium Supporter

    cibu MP Donator

    Joined:
    May 25, 2008
    Messages:
    109
    Likes Received:
    4
    Gender:
    Male
    Occupation:
    Database Application Developer
    Location:
    Nordhorn
    Ratings:
    +5 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Does it only use nfo-files and pictures stored in the movies directories? Or is it filled up by internet-data?

    Edit: All my nfo's are generated with Ember Media Manager and it seems not to work. Pictures and text are not my local ones.
     
    Last edited: October 4, 2013
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!