I have about 2000 movies. I would like to correct some of
genre tags (eg, Mystery, Drama, Romance, etc) assigned to
each movie. I don’t want to click through all 2000 movies
one at a time. I wanted to get a list of all my movies
showing the titles and genre/tags associated with each
movie so I could quickly scan through the list.
I read this:
https://forums.plex.tv/t/howto-query-data-from-plex-on-a-mac/11636
and thought I knew enough and queried this database table / fields
metadata_items -> title,tags_genre
and got (surprisingly!) good output.
Here’s an example output line:
The Bourne Identity|Mystery|Action
However, I quickly discovered that this query was not displaying all of
the tag genres. For example, for the above movie, if I use the webapp
to look at the tags on this movie, they are “Action, Thriller, Mystery”.
In other words, my SQL query did not find “Action”.
I tried adding/deleting/re-adding different genre tags to movies,
and that didn’t really do anything useful with my query output.
In all cases, the webapp found and displayed the genre tags
correctly.
It seems that the Plex SQL database is storing the genre tags in some
place besides metadata_items -> tags_genre.
I looked at some other tables (like tags), but I didn’t get anywhere.
Can someone explain how to query the database to get a correct list of
movie titles / genre tags ?