Giter Club home page Giter Club logo

Comments (3)

adamk33n3r avatar adamk33n3r commented on June 3, 2024 1

Awesome, thanks for the quick response! :D

from purgeomatic.

ASK-ME-ABOUT-LOOM avatar ASK-ME-ABOUT-LOOM commented on June 3, 2024

To pull the TMDB ID from Tautulli requires two API calls: the first is the get_library_media_info query which pulls all of the media items in a given library. One of the items in each record is the rating_key, which, although the name is confusing (to me, at least) it appears to be the unique ID Tautulli uses. You use the rating key to run a get_metadata query. One of the items returned in that response is a list of GUIDs, resembling:

"guids": [
        "imdb://tt12345678",
        "tmdb://123123",
        "tvdb://456456"
      ],

Unfortunately, on some items, the result is just:

"guids": [],

There doesn't seem to be any rhyme or reason for it, and I can't see a way to tell Tautulli, "hey, fill in the unique IDs for these items, please," which would essentially solve this whole problem.

I just did some digging and it looks like it pulls this info from Plex. I just refreshed the metadata in Plex for a movie that had no metadata, and now the GUIDs are showing up. It looks like regular Plex metadata refreshes might be a suggestion to put in the readme.

What seems like the most straightforward approach is to do an API call for the GUIDs and see if they exist. If they exist, we match based on that. If they don't, we match based on title. I'll see about getting this coded.

from purgeomatic.

ASK-ME-ABOUT-LOOM avatar ASK-ME-ABOUT-LOOM commented on June 3, 2024

This should be fixed. I'm now doing lookups for the list of GUIDs in the Tautulli API, and if they exist, I'm matching on TMDB/TVDB ID instead of title. Should the query for the GUID list for a given media item return empty ([]), it falls back to the less-reliable title-based match rather than giving up altogether.

Please go into Plex and trigger a metadata refresh! It appears that the list of GUIDs in Tautulli is sourced directly from Plex metadata.

from purgeomatic.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.