Server Version#: 1.20.0.3133
Player Version#: 4.39.1
The new agent works great except that it does not populate the guid field in the xml info in the same way it did before.
Before it had either imdb:// or themoviedb:// prefix. Now it has been replaced by a generic plex:// prefix.
Because of this it is now impossible to get the id of movies from the xml and some of my scripts relying on this functionality is broken.
Is there any possibility of getting this field back? Possibly in the form of another tag.
Or any other methods I can get this info programmatically
Also need to figure out a way to have this work. Would love to use the new agent but without any type of connection to imdb or tmdb I cannot use my script.
Would love if you could expose the matched id fields. Following the pattern you can add something like the below tot the xml to be read from
Since the new update the IDs are available in the single view of an entry. But they are still missing in the general view. /library/sections/1/all So I think you can’t search for them. I hope they will add that to it.
The problem is that the new agent does not make any ID visible. Only in the single view of an entry. You can only see those new guid’s. For example: plex://movie/5d776ad847dd6e001f6d7f35
As a result many scripts that specifically search for IMDB or TMDB IDs no longer work. Searching every single entry would take too long. The IDs should already be visible on /library/sections/X/all
If you can access Plex database you have tmdb in tags table in the form tmdb://xxxxx when using Plex Movies agent.
The following code will give you movie ID from database if using new Plex Movie Scanner based on tmdb, replace ${tmdb} with tmdb ID you’re looking for:
“SELECT taggings.metadata_item_id from tags LEFT JOIN taggings on tags.id=taggings.tag_id WHERE tags.tag_type=314 AND tags.tag LIKE ‘tmdb://${tmdb}’”
That would be one way. But it would be nicer if you could do it via the Python API, for example. This API does not access the database but uses only the XML.