Fine-tune "Plex Movie" agent?

Historically I get a movie title from IMDB page and use it to name a file (replacing some characters like “:”). Works for me for last 10 years.
So here’s a fine named “Star Wars - Episode V - The Empire Strikes Back (1980).mkv”.

Plex Movie Agent is configured to only use IMDB, other agents are turned off completely on that library.
But the title I get is “The Empire Strikes Back”:
...guid="com.plexapp.agents.imdb://tt0080684?lang=en" librarySectionTitle="Movies" librarySectionID="4" librarySectionKey="/library/sections/4" studio="Lucasfilm" type="movie" title="The Empire Strikes Back" titleSort="Empire Strikes Back" contentRating="PG"...

IMDB and Metacritic list it as “Star Wars: Episode V - The Empire Strikes Back (1980)”, TheMovieDB and Wikipedia use “The Empire Strikes Back”.

How can I force the agent to use IMDB title? I need it for my pet project (syncing IMDB playlists with Plex) that I hope to release some day.

Why don’t you use the IMDb ID for your project? It’s the natural choice when working with the IMDb.
guid="com.plexapp.agents.imdb://tt0080684?lang=en
tt0080684 is the IMDB ID, which also appears in the URL when looking at the movie’s page on IMDb: https://www.imdb.com/title/tt0080684/

Thanks, Otto. Sure, IDs are much better option usually.
But is there any way to learn to reconfigure the Agent? I think many users might appreciate that kind of tuning.

my particular case

I am already using IDs. The problem is that guid attribute is not present on XML that comes from %PMS%/library/sections/%library_id%/all, it’s only present in responses from %PMS%/library/metadata/%video_key%, and that means making 1 request per movie, instead of 1 per library. Expected title would give me 2000 times less traffic, and make my plugin architecture very simple.

Did you analyze the source code of ExportTools?
Maybe @dane22 has found a better/faster way?

Sadly OP is correct here, since it’s not exposed on the library level

Due to that, I do paging on the library in pairs of 20, in order to not stress the PMS, as well as have an exclude param about what not to fetch

https://github.com/ukdtom/ExportTools.bundle/blob/master/Contents/Code/init.py

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.