[implemented] Add includeGuids URL parameter to return external Guids

You’re right. I went back and re-read and for some reason the first time through I detected a passive-aggressive undertone, but now I see that’s not the case and I apologize. Hopefully this works out for you and the devs.

4 Likes

I could query the database, but that should not be the recommendation for 3rd party applications. The API should be used.

The alternative mentioned above for making external guids searchable is also an option.

Edit: But if I have a list of external guids, searching will still be one API call per search. With this feature request, I could do one API call and cache it for my own map.

2 Likes

I agree. Just the current API isn’t meant for that and this change would take some work. Just spit balling ideas for now.

I’m wondering if a new API to specifically look for a movie/show using an external ID may be easier to get implemented.

Either way, the number and speed of the votes in this request has gotten my attention and I will make sure it gets the tram’s attention too. I can’t guarantee a response or that this gets implemented but I want to at least acknowledge that this is not being ignored.

10 Likes

If it assists the justification process at all, this request is to restore similar functionality as previously existed.

With the previous agents, the “guid” was an external ID and was implicitly returned in a single query.

So adding this may help restore performance for some of the apps that were impacted.

… which would also help reduce API requests and load against Plex servers. In some cases thousands of network requests are sent to Plex servers for external IDs.

5 Likes

I’m here because Tautulli is asking for it, +1 for this. Also thanks for the quick notice and escalation to devteam too, @anon18523487

1 Like

+1 from me!

While were talking about this can you also make sure whatever you do that it also works for the Plex Music Agent. We still cant see the external MovieBrainz ID like we can with movies or shows!

DOOOOOO IIIIIITTTTTTTTT.

Please.

+1 from me aswell

+1 yes please!! would be a great feature

Another +1 for this here, noticed the thread from Tautulli but was grappling with the issue myself a little before that for a Telegram bot I’d written.

Like OP, I can query for all films to extract the additional GUIDs with my PowerShell module, but this takes 49 seconds against a collection with 3100 titles and is obviously super inefficient.

Fully support the implementation suggested to add an optional parameter for includeGuids=1 or includeExternalGuids=1.

It’d just be a case of appending the additional imdb/tmdb/tvdb properties to the current objects returned when calling /library/sections/<librarySectionID>/all. Example of the current object structure below:

ratingKey             : 7771
key                   : /library/metadata/7771
guid                  : plex://movie/5d77682a151a60001f24b5c0
studio                : Warner Bros. Pictures
type                  : movie
title                 : Alexander
contentRating         : 15
summary               : Alexander, the King of Macedonia, leads his legions against the giant Persian Empire. After defeating the Persians, he leads his army across the then known world, venturing farther than any westerner had ever gone, all the way to India.
rating                : 1.6
audienceRating        : 3.5
viewCount             : 1
lastViewedAt          : 1556123063
year                  : 2004
tagline               : The greatest legend of all was real
thumb                 : /library/metadata/7771/thumb/1612551783
art                   : /library/metadata/7771/art/1612551783
duration              : 12408256
originallyAvailableAt : 2004-11-24
addedAt               : 1551196891
updatedAt             : 1612551783
audienceRatingImage   : rottentomatoes://image.rating.spilled
chapterSource         : media
primaryExtraKey       : /library/metadata/45208
ratingImage           : rottentomatoes://image.rating.rotten
Media                 : Media
Genre                 : {Genre, Genre}
Director              : Director
Writer                : {Writer, Writer}
Country               : {Country, Country}
Role                  : {Role, Role, Role}

+1 yes please!!!

Make it so

I had a question once (Fine-tune "Plex Movie" agent?)… Ended up using IDs as suggested by Otto, and library scans take a long time triggering a meta refresh on each item:

image

With IDs exposed on library level it would take 1 request per library.

Please consider implementing this soon. Thanks!

+1 Yes, please!

+1, Yes we want that

+1, please implement this feature.

add this feature! please

Yup definitely a needed feature!!!

yes plzzzz i would like this also