# Plex Library Agent - Not Matching Correctly

**URL:** <https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785>\
**Category:** General Discussions\
**Created:** [July 9, 2023, 7:53am UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785 "2023-07-09T07:53:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shibblet](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Shibblet](https://forums.plex.tv/u/Shibblet)\
**Post date:** [July 9, 2023, 7:53am UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/1 "2023-07-09T07:53:20Z")

</div>

I just finished “Ripping” my new “Friends” Blu-Ray Collection. When I upload it to Plex, the agent recognizes the TV Show “Friends,” but some of the episodes are assigned incorrectly.

Season 4 assumes there is only one “Season Finale,” but it is two episodes. Season 6 assumes that episode 13 & 14 are one episode, and names episodes 14-23 incorrectly, and doesn’t even name episodes 24 and 25.

I used to be able to select a different agent, like TVDB, and it would rescan through the files and name them correctly, but I don’t seem to have that option now.

What gives?

---

<div class="post-metadata">

**Author:** ![JaysPlex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jaysplex/32/281767_2.png) [@JaysPlex](https://forums.plex.tv/u/JaysPlex)\
**Post date:** [July 9, 2023, 8:22am UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/2 "2023-07-09T08:22:45Z")

</div>

You may have a combination of a few different problems.

The first thing you should do is switch to the TVDB show order

Make sure your shows match what TVDB has here  
[https://thetvdb.com/series/friends#seasons](https://thetvdb.com/series/friends#seasons)

**Click the pencil on the show poster and go to advanced**

![EPISODE ORDERING](https://global.discourse-cdn.com/plex/original/4X/5/7/8/5783eedb9b7168a7319af487a958d8051f4f0582.png)

Refresh the metadata if it doesn’t do it automatically

Check your mismatched episodes again

If that doesn’t fix everything review this support article on how to name multipart episodes  
[https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/](https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/)

There is a DVD order on TVDB also which you can check. At first glance it looks identical the the “aired” order but it might match your DVD. You’ll have to look

---

<div class="post-metadata">

**Author:** ![Shibblet](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Shibblet](https://forums.plex.tv/u/Shibblet)\
**Post date:** [July 9, 2023, 4:43pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/3 "2023-07-09T16:43:36Z")

</div>

I did that, and it doesn’t change anything. I also looked very closely at the order on TVDB. My files are EXACT. Nothing changes.

I am starting to think there is a problem with this new version of Plex… I can’t get “theme music” to work either, even though it is checked off in the settings.

---

<div class="post-metadata">

**Author:** ![JaysPlex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jaysplex/32/281767_2.png) [@JaysPlex](https://forums.plex.tv/u/JaysPlex)\
**Post date:** [July 9, 2023, 5:59pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/4 "2023-07-09T17:59:55Z")

</div>

How exactly are the episodes named?

I just rebuilt one of my servers a few days ago and everything I added got matched correctly

 ![Screenshot (1506)](https://global.discourse-cdn.com/plex/original/4X/5/d/3/5d35a2ae71232355fe3b5d9fd6162b0af5af739f.png)

 ![Screenshot (1509)](https://global.discourse-cdn.com/plex/original/4X/a/2/1/a2104cb3109a3ad55120acd0b5c08179065202e8.jpeg)

If you naming is correct the only thing I can suggest is to [Plex dance](https://forums.plex.tv/t/the-plex-dance/197064) ← click

If that doesn’t work, create a test library using the TVDB show order and just point it at the Friends folder only to see if it works

---

<div class="post-metadata">

**Author:** ![Shibblet](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Shibblet](https://forums.plex.tv/u/Shibblet)\
**Post date:** [July 9, 2023, 7:51pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/5 "2023-07-09T19:51:06Z")

</div>

![Screenshot 2023-07-09 114949](https://global.discourse-cdn.com/plex/original/4X/b/4/1/b4165cd665c838288d66bc60ad54a7bcc47d2b85.png)

This is just Season 04. But you can see that things are named correctly.

---

<div class="post-metadata">

**Author:** ![Shibblet](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Shibblet](https://forums.plex.tv/u/Shibblet)\
**Post date:** [July 9, 2023, 7:52pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/6 "2023-07-09T19:52:39Z")

</div>

Here’s Season 06  
 ![Screenshot 2023-07-09 115215](https://global.discourse-cdn.com/plex/original/4X/b/0/6/b06c7874bdccd748cd738065d087d0da74a963a3.png)

---

<div class="post-metadata">

**Author:** ![Shibblet](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Shibblet](https://forums.plex.tv/u/Shibblet)\
**Post date:** [July 9, 2023, 8:46pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/7 "2023-07-09T20:46:25Z")

</div>

I just went back over the TVDB Site for the thousandth time. I just noticed something. The episodes that Plex is always a “Part 2” of a 2 part episode, but they have the same “Air Date” on TVDB.

---

<div class="post-metadata">

**Author:** ![Shibblet](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Shibblet](https://forums.plex.tv/u/Shibblet)\
**Post date:** [July 9, 2023, 9:15pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/8 "2023-07-09T21:15:18Z")

</div>

If I would venture a guess… it seems as if Plex is pulling data from TMDB and not TVDB. Regardless of which one you pick, or which agent you have activated.

---

<div class="post-metadata">

**Author:** ![JaysPlex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jaysplex/32/281767_2.png) [@JaysPlex](https://forums.plex.tv/u/JaysPlex)\
**Post date:** [July 9, 2023, 9:35pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/9 "2023-07-09T21:35:06Z")

</div>

Yeah I could see that the shows you were having trouble with were all the shows that are different between TVDB and TMDB

What agent are you using now?

The screen shot I showed you above is only for using the new agent. If you are using one of the legacy agents those settings don’t apply to you and will do nothing

**3 dots next to the library → Manage Library → Edit → Advanced**

 ![Agents](https://global.discourse-cdn.com/plex/original/4X/0/a/3/0a350927a9e97a8a12707c2c20ee947bb12a5c5c.png)

If you switch your agents back and forth it can corrupt a library which is why I suggested you try it in a newly created one just to test it

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 7, 2023, 9:35pm UTC](https://forums.plex.tv/t/plex-library-agent-not-matching-correctly/846785/10 "2023-10-07T21:35:15Z")

</div>

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