# Episode ordering is ignored

**URL:** <https://forums.plex.tv/t/episode-ordering-is-ignored/796375>\
**Category:** Metadata & Adding Files\
**Tags:** library-management\
**Created:** [June 9, 2022, 5:33pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375 "2022-06-09T17:33:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 5:33pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/1 "2022-06-09T17:33:38Z")

</div>

Server Version#: 1.26.2.5797  
Player Version#:Any

Season 2 of the real ghostbusters uses the incorrect metadata for episode ordering no matter what i set the override to, its correct on tvdb airing order but will only use tmdb which i correct.

is episode ordering functionality broken?

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 5:37pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/2 "2022-06-09T17:37:45Z")

</div>

if i change to the tvdb agent to the library it works as expected

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 6:46pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/3 "2022-06-09T18:46:00Z")

</div>

What happens when you set the show to tvdb aired order and then refresh the metadata?

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 6:47pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/4 "2022-06-09T18:47:34Z")

</div>

it doesn’t change, it does the refresh whirl but still pulls the movie db stuff

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 6:49pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/5 "2022-06-09T18:49:38Z")

</div>

Can you post your [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) then?

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 6:53pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/6 "2022-06-09T18:53:06Z")

</div>

ill try to, might be a sec

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 8:06pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/7 "2022-06-09T20:06:17Z")

</div>

[Plex Media Server Logs\_2022-06-09\_13-05-25.zip](https://forums.plex.tv/uploads/short-url/tzFwzJPUVPbD6Reu9WucuqSsA14.zip) (8.0 MB)

there you go

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 8:19pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/8 "2022-06-09T20:19:06Z")

</div>

What are the filenames for those episodes?

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 8:22pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/9 "2022-06-09T20:22:51Z")

</div>

Strike that, I figured your problem out. Your file naming needs work. `The Real Ghostbusters/Season 3/S03E82 Once Upon A Slime.mp4` is wrong, it should be `The Real Ghostbusters/Season 3/The Real Ghostbusters S03E05 Once Upon A Slime.mp4`

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 8:35pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/10 "2022-06-09T20:35:09Z")

</div>

PS it also looks like you are using embedded metadata, which might be part of the problem too.

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 8:40pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/11 "2022-06-09T20:40:49Z")

</div>

Hi,

I only care about season 2 here.

Embedded metadata?

The issue is that the use episode ordering setting from tvdb is ignore and it uses tmdb instead

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 9:08pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/12 "2022-06-09T21:08:08Z")

</div>

@drzoidberg33 I can actually confirm this bug, I looked at my library and the ordering does not match the TVDB like it should.

---

<div class="post-metadata">

**Author:** ![duranman2000](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@duranman2000](https://forums.plex.tv/u/duranman2000)\
**Post date:** [June 9, 2022, 9:30pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/13 "2022-06-09T21:30:21Z")

</div>

for me the problem is it show epiosode 1 episode 2 an most of my tv show

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 9, 2022, 9:59pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/14 "2022-06-09T21:59:57Z")

</div>

Cool, not just me then.

So now what?

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [June 9, 2022, 10:17pm UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/15 "2022-06-09T22:17:46Z")

</div>

@duranman2000 Not sure what your issue is, please start a new thread for your issue.

@ecto1a2003 I poked one of the Plex employee’s to see if they can provide any further insight.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [June 10, 2022, 12:49am UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/16 "2022-06-10T00:49:04Z")

</div>

Thanks for report. I’ll let metadata team know.

---

<div class="post-metadata">

**Author:** ![benfishbus](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/benfishbus/32/87941_2.png) [@benfishbus](https://forums.plex.tv/u/benfishbus)\
**Post date:** [June 10, 2022, 3:04am UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/17 "2022-06-10T03:04:37Z")

</div>

I’ve experienced this with shows like American Experience and Nova, which are ordered significantly differently on tvdb vs. tmdb. Using the old series scanner with the tvdb agent, the metadata is correct. Using the new tv series scanner and agent, and tvdb episode ordering as library default, the metadata is out of alignment. Explicitly setting tvdb(aired) ordering at the show level has no effect either, even after refreshing metadata.

This issue has kept me from switching my TV library to the new scanner/agent, so I would love to see it resolved.

---

<div class="post-metadata">

**Author:** ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)\
**Post date:** [June 10, 2022, 7:31am UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/18 "2022-06-10T07:31:05Z")

</div>

All the data on TMDB for season 2 of this show is bad, including the external IDs and air dates for episodes we use to match between TMDB and TVDB.

I’ve removed all the bad external IDs for those episodes on TMDB so our data should update within the next day or two with the correct order.

Looks like all the episode titles were changed a little while back on TMDB but not the other data: [The Real Ghostbusters S2E1 (1987) - Changes — The Movie Database (TMDB)](https://www.themoviedb.org/tv/2286-the-real-ghostbusters/season/2/episode/1/changes)

---

<div class="post-metadata">

**Author:** ![ecto1a2003](https://avatars.discourse-cdn.com/v4/letter/e/47e85d/32.png) [@ecto1a2003](https://forums.plex.tv/u/ecto1a2003)\
**Post date:** [June 10, 2022, 7:39am UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/19 "2022-06-10T07:39:13Z")

</div>

That is certainly true and thanks for doing that but the overall issue of the setting being ignored is still there yes?

---

<div class="post-metadata">

**Author:** ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)\
**Post date:** [June 10, 2022, 8:23am UTC](https://forums.plex.tv/t/episode-ordering-is-ignored/796375/20 "2022-06-10T08:23:02Z")

</div>

No, this is the cause of the issue.

Plex metadata ideally has one id for any single episode, which is the data merged from TMDB and TVDB. If we merge two episodes that aren’t the same then this is what happens as we rely on the title and summary from TMDB first, so that’s why it looks like we’re using TMDB ordering when in fact it’s just because we’re using their episode titles.

The only reason we merged these episodes incorrectly is because TMDB had the wrong external TVDB id **and** the wrong matching air dates.

[Next page](https://forums.plex.tv/t/episode-ordering-is-ignored/796375.md?page=2)
