Using tvshow.nfo metadata to match series (1 Viewer)

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    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:
    <tvshow>
    ....
      <id>274099</id>
    ....
    </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 :)
     

    Attachments

    • tvshow.txt
      860 bytes
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    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 :)
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    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
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    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:
    <mirrorpath>/api/GetSeries.php?seriesname=<seriesname>&language=<language>

    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:

    Users who are viewing this thread

    Top Bottom