Using tvshow.nfo metadata to match series

Discussion in 'My TVSeries' started by Rick164, February 26, 2016.

  1. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hi,

    Some automators like Sonarr and Sickbeard (and Kodi scraper) place a metadata file called "tvshow.nfo" in series folders which contains the show information and also exact tvdb ID, attached an example of one.
    Basically all the info MP-TVseries would need to do a direct match is in there and here's an example of how it could work:



    - Root folder of all series is \\NAS\Tv
    - Each series has its own folder like for example \\NAS\Tv\@Midnight
    - In the series folder \\NAS\Tv\@Midnight there's a file called tvshow.nfo
    - It reads the XML contents and looks for this node:

    Code (Text):
    1. <tvshow>
    2. ....
    3.   <id>274099</id>
    4. ....
    5. </tvshow>
    - It then skips online lookups and uses this ID directly, this saves time and prevents mismatches because the tvshow.info will always have the correct ID.

    Would be great if local metadata importing can be supported :)
     

    Attached Files:

    • tvshow.txt
      File size:
      860 bytes
      Uploaded:
      February 26, 2016
      Views:
      132
    Last edited: February 26, 2016
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,706
    Likes Received:
    2,694
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,659 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    • Informative Informative x 1
  4. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Doh! :sleep:

    With google code now being closed any way this can be upvoted?
    Could duplicate this on the github issue tracker but forums tends to be better way to discuss new features tbh :)
     
    • Agree Agree x 1
  5. barneh
    • Premium Supporter

    barneh MP Donator

    Joined:
    February 4, 2010
    Messages:
    242
    Likes Received:
    27
    Location:
    Malmö
    Ratings:
    +53 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    This is not as trivial as expected since TheTVDB don't have the ability to get series by thetvdbid, only by remote id in the form of imdb id.
    And then it can be a problem when the series on TheTVDB don't have the imdb id added. Or in worse case the series don't exist on imdb.

    TheTVDB API specification:
    https://thetvdb.com/wiki/index.php?title=Programmers_API#General_Information
     
    • Like Like x 1
  6. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    That's one odd API, since the ID is in their database already don't see why they wouldn't offer it for search.
    Hopefully their upcoming new site will offer that :) , in the meantime it could use the series name from .nfo or regexp as fallback instead:

    Code (Text):
    1.  
    2. <mirrorpath>/api/GetSeries.php?seriesname=<seriesname>&language=<language>
    3.  
    And afterwards filter by the ID from .nfo so that it can do automatic exact matching without user interaction.
    Since the series name in .nfo has to be exact match on tvdb (as it got its info from there) it should improve matching already because regexp could be off.

    @ltfearme any ideas if something like this is feasible?

    Looked over the MP-TVseries code and could write the initial code for XML parsing but have no clue how to neatly integrate this there.
     
    Last edited: February 28, 2016
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!