Is there an API that will allow me to query the PMS with a filename (and path) and it will return which movie/show it is associated to in the database?
I’d like to rename my files based on the name of the movie/show as recorded by the Plex agents. Once I determine which movie is associated to the file, I then rename the file to be like: “movie-name (year)/movie-name (year).ext”
I already have a script/app that reads from a copy the sqlite3 Plex database, but I’d prefer to access via an API instead.