Comments (3)
Awesome, thanks for the quick response! :D
from purgeomatic.
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.
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)
- Overseerr Connection HOT 1
- Feature Request - Sonarr season deletion? HOT 3
- issues in running in linux container HOT 14
- Not an issue: some ideas / feature request HOT 1
- Docker-Compose HOT 1
- Script seems to crash at variable times. Also get error message with each movie or TV show. HOT 7
- Error Running Dry Run HOT 2
- delete.tv.unwatched.py deleting same series with longer name HOT 2
- Transmission support HOT 1
- delete.tv.unwatched.py: list index out of range HOT 5
- Possible to Use Tags HOT 2
- delete.movies.unwatched.py list index out of range HOT 2
- Possible to clean multiple libraries at once or setup different .env configs HOT 2
- Support for multiple Radarr and Sonarr instances HOT 2
- Days without Watch logic HOT 4
- Size of every result while running? HOT 1
- Make script check TMDB and the TVDB for ratings before deleting. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purgeomatic.