How do I get PLEX to rename the files automatically after I change the file name?

Ok, so I added a bunch of movies to my library and plex found them all. The problem is that I messed up and did not rename them first and now the crappy file names are in my plex server directory (the display that shows the movies)
For example, I added the movie “The.battle.of.the.dead” and it found it and added it with the same exact name. So I deleted all the “.” in the title, but the original title name still shows up with the “.” and it’s annoying. The movie still plays, but aesthetically, it’s annoying to see the periods in the name and it’s happened to every movie there. Is there a way I can have plex re-do just the titles? I know I can delete the library and have plex build it again, but I don’t want to wait forever for it to be fixed, or manual rename each file on the server directory if there is an easier way. Any help will be appreciated. Thanks for all you do, guys & gals.

That’s likely the local media asset agent so Move that down, or use something like mp3tag to strip the embedded metadata out of your files.

I used a bulk renamer on both folders AND files and replaced the . with space, so The.battle.of.the.dead folder and the file in it were changed to The battle of the dead (folder) and The battle of the dead.mp4 (file, of course)
But on the LIBRARY screen, below the movie icon, it still has “The.battle.of.the.dead”. I know I can fix this manually, but changing the files name for 100+ movies will take me forever.

It’s not the file name that is the issue, those dots are embedded in the file itself. Take a look with mp3tag (yes that works for Mp4 as well).
The quick fix is to move your local asset agent down in the properties of the library.

Well, you are absolutely correct, the “.'s” are embedded. I added a new file that I had renamed and THEN added, and the “.” showed up. Is there a way to strip all the tags out or will that remove the titles from my library altogether? Concerning the agent, should I change it to a different Agent? Like The Movie Database, or something?

You don’t really have to.

Go into your Agents for movies and drag Local Media Assets (Movies) further down the list if it’s at the top.

For libraries which still use the old agents:

Go to

  • Settings - Server - Agents - Shows - TheTVDB

In there, grab the line ‘Local Media Assets’ with your mouse and drag it downwards, so it ends up being at the bottom of the stack of active agents.
Repeat the same under

  • Settings - Server - Agents - Shows - TheMovieDatabase
  • Settings - Server - Agents - Movies - Plex Movie
  • Settings - Server - Agents - Movies - TheMovieDatabase

For libraries which have been converted to use the new movie agent:
Edit your library, go to the ‘Advanced’ tab.
Make sure that “ Prefer local metadata” is not checked.

Refresh Metadata afterwards.

Or, if you want to tackle the issue at the source, use mp3tag to delete the embedded Title meta tags from your files.
Yes, mp3tag allows you to do that on many files at once. However, it will be the slowest method because it requires the whole file to be rewritten in many cases.

All of the above only applies to mp4 / m4v files.

Awesome, thanks!!

1 Like

You guys are all awesome, thank you for the quick replies. And, yes, it worked!

1 Like

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