# Plex putting episode in wrong season

**URL:** <https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966>\
**Category:** Metadata & Adding Files\
**Tags:** server-windows, library-management\
**Created:** [January 1, 2021, 9:30pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966 "2021-01-01T21:30:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsingh93](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gsingh93](https://forums.plex.tv/u/gsingh93)\
**Post date:** [January 1, 2021, 9:30pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/1 "2021-01-01T21:30:03Z")

</div>

I’m running into an issue where Plex is putting one episode of a show into the wrong season. The filename is “Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv” and it’s in the “Season 2” folder. Plex is putting this in Season 0/Specials. In an old log which is now gone, it showed: “Hint season didn’t match (‘0’ != ‘2’)”, and after deleting the file and putting it back it now shows:

```auto
Jan 01, 2021 13:19:15.249 [11768] DEBUG - Looking for path match for [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv]
Jan 01, 2021 13:19:15.249 [11768] DEBUG - Skipping hash check, no size match for 520183429 bytes.
Jan 01, 2021 13:19:15.249 [11768] DEBUG - No match for hash.
Jan 01, 2021 13:19:15.250 [11768] DEBUG - Checking descendants of Adventure Time
Jan 01, 2021 13:19:15.250 [11768] DEBUG - -> Searching down into Adventure Time/Season 1
Jan 01, 2021 13:19:15.250 [11768] DEBUG - Checking descendants of Adventure Time/Season 1
Jan 01, 2021 13:19:15.251 [11768] DEBUG - -> FOUND metadata item (show)
Jan 01, 2021 13:19:15.251 [11768] DEBUG - -> We found a local media item with rooted metadata in Adventure Time/Season 1
Jan 01, 2021 13:19:15.251 [11768] DEBUG - Found existing show 346
Jan 01, 2021 13:19:15.251 [11768] DEBUG - Creating season 0 for show 'Adventure Time'

```

I don’t see anything in Season 0 that this could be confused with on TVDB: [https://thetvdb.com/series/adventure-time/seasons/official/0](https://thetvdb.com/series/adventure-time/seasons/official/0)

Any tips on debugging this? Refreshing metadata doesn’t help.

---

<div class="post-metadata">

**Author:** ![Dan\_Bev](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dan_bev/32/226338_2.png) [@Dan\_Bev](https://forums.plex.tv/u/Dan_Bev)\
**Post date:** [January 1, 2021, 11:23pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/2 "2021-01-01T23:23:49Z")

</div>

Maybe the file has embedded metadata?

---

<div class="post-metadata">

**Author:** ![gsingh93](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gsingh93](https://forums.plex.tv/u/gsingh93)\
**Post date:** [January 2, 2021, 4:52am UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/3 "2021-01-02T04:52:36Z")

</div>

Thanks for the response. I ran mkvinfo on the file and didn’t see any metadata that would cause an issue. Anything else I should check?

BTW, I renamed the file to “Adventure Time - S02E23.mkv” (removing the episode name) and then plex found it and put it in the right season, but then the episode is just called “Episode 23” in Plex and refreshing the metadata doesn’t change the name. How can I debug this? Here’s the logs I see when I change the name:

```auto
Jan 01, 2021 20:48:19.391 [13364] DEBUG - Looking for path match for [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23.mkv]
Jan 01, 2021 20:48:19.392 [13364] DEBUG - Checking by hash to see if we can find a match with 0c145570d999d97dc720ee095cf80fb9fd407f93 (display offset: 0, not part -1)
Jan 01, 2021 20:48:19.392 [13364] DEBUG - We found a hash match for [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23.mkv] which was [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv].
Jan 01, 2021 20:48:19.392 [13364] INFO - Part rename detected [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv] was renamed [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23.mkv]
Jan 01, 2021 20:48:19.393 [13364] DEBUG - Updating media item 4649, size=520183429, metadata_item_id=4435
Jan 01, 2021 20:48:19.393 [13364] DEBUG - Updating part with ID=4994 [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv]
Jan 01, 2021 20:48:19.393 [13364] DEBUG - Hint season didn't match ('2' != '0') for DB media item 4649
Jan 01, 2021 20:48:19.394 [13364] DEBUG - Checking descendants of Adventure Time
Jan 01, 2021 20:48:19.394 [13364] DEBUG - -> Searching down into Adventure Time/Season 1
Jan 01, 2021 20:48:19.394 [13364] DEBUG - Checking descendants of Adventure Time/Season 1
Jan 01, 2021 20:48:19.395 [13364] DEBUG - -> FOUND metadata item (show)
Jan 01, 2021 20:48:19.395 [13364] DEBUG - -> We found a local media item with rooted metadata in Adventure Time/Season 1
Jan 01, 2021 20:48:19.395 [13364] DEBUG - Found existing show 346
Jan 01, 2021 20:48:19.395 [13364] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.395 [13364] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.410 [13364] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.411 [13364] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.411 [13364] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.425 [13364] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.426 [13364] DEBUG - Added new metadata item () with ID 4436
Jan 01, 2021 20:48:19.426 [3548] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 01, 2021 20:48:19.429 [13364] DEBUG - Deleting media item 4649.
Jan 01, 2021 20:48:19.429 [13364] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.429 [13364] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.441 [3548] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 01, 2021 20:48:19.441 [13364] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.441 [13364] DEBUG - Was connected to metadata item 4435, count is now 0.
Jan 01, 2021 20:48:19.442 [13364] DEBUG - Destroying metadata item 4435 (Videomakers)
Jan 01, 2021 20:48:19.442 [13364] DEBUG - Reconnecting item 4435 with item 4436 in playlists.
Jan 01, 2021 20:48:19.442 [13364] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.442 [13364] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.456 [13364] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.457 [13364] DEBUG - Destroying metadata item 4434 (Specials)
Jan 01, 2021 20:48:19.457 [13364] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.457 [13364] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.472 [13364] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 01, 2021 20:48:19.473 [13364] DEBUG - Updating deletion state for metadata item 346, is has a dead item count of 0.
Jan 01, 2021 20:48:19.473 [3548] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache

```

---

<div class="post-metadata">

**Author:** ![Dan\_Bev](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dan_bev/32/226338_2.png) [@Dan\_Bev](https://forums.plex.tv/u/Dan_Bev)\
**Post date:** [January 2, 2021, 1:24pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/4 "2021-01-02T13:24:56Z")

</div>

Did you try naming it Adventure Time - S02E23 - Videomakers.mkv  
I suspect the _Bluray-1080p_ part causes the problem.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [January 2, 2021, 1:34pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/5 "2021-01-02T13:34:24Z")

</div>

> [@gsingh93](#):
>
> ```auto
> Jan 01, 2021 20:48:19.392 [13364] DEBUG - Checking by hash to see if we can find a match with 0c145570d999d97dc720ee095cf80fb9fd407f93 (display offset: 0, not part -1)
> Jan 01, 2021 20:48:19.392 [13364] DEBUG - We found a hash match for [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23.mkv] which was [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv].
> Jan 01, 2021 20:48:19.392 [13364] INFO - Part rename detected [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers Bluray-1080p.mkv] was renamed [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23.mkv]
> Jan 01, 2021 20:48:19.393 [13364] DEBUG - Updating media item 4649, size=520183429, metadata_item_id=4435
> 
> ```

^^^^ is a sign that this file was previously mismatched. Plex is recognizing it by its bogohash and thus is maintaining its wrong assignment to season 0.  
You need to perform the [Plex Dance](https://forums.plex.tv/t/plex-incorrectly-identifying-tv-episodes/100265/4 "Plex Dance") to clear that wrong assignment from Plex’s database.

---

<div class="post-metadata">

**Author:** ![gsingh93](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gsingh93](https://forums.plex.tv/u/gsingh93)\
**Post date:** [January 2, 2021, 10:14pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/6 "2021-01-02T22:14:31Z")

</div>

So I:

1. Renamed the file to “Adventure Time - S02E23 - Videomakers.mkv”
2. Moved the entire Adventure Time folder out of my Plex library folder
3. Scanned the library
4. Emptied the trash
5. Cleaned bundles
6. Moved the files back
7. Scanned the library files

S02E23 is still showing up in Season 0/Specials. Here’s the relevant logs, you can see that S02E22 gets added to the existing Season 2, but a new Season 0 gets created when it hits S02E23:

```auto
Jan 02, 2021 13:46:09.734 [2668] DEBUG - Looking for path match for [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E22 - The Limit Bluray-1080p.mkv]
Jan 02, 2021 13:46:09.734 [2668] DEBUG - Skipping hash check, no size match for 519359581 bytes.
Jan 02, 2021 13:46:09.734 [2668] DEBUG - No match for hash.
Jan 02, 2021 13:46:09.734 [2668] DEBUG - Checking descendants of Adventure Time
Jan 02, 2021 13:46:09.735 [2668] DEBUG - -> Searching down into Adventure Time/Season 2
Jan 02, 2021 13:46:09.735 [2668] DEBUG - Checking descendants of Adventure Time/Season 2
Jan 02, 2021 13:46:09.735 [2668] DEBUG - -> FOUND metadata item (show)
Jan 02, 2021 13:46:09.735 [2668] DEBUG - -> We found a local media item with rooted metadata in Adventure Time/Season 2
Jan 02, 2021 13:46:09.735 [2668] DEBUG - Found existing show 4492
Jan 02, 2021 13:46:09.736 [2668] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.736 [2668] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.737 [15496] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 02, 2021 13:46:09.753 [2668] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.754 [2668] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.754 [2668] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.769 [2668] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.769 [2668] DEBUG - Added new metadata item (The Limit) with ID 4515
Jan 02, 2021 13:46:09.769 [15496] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 02, 2021 13:46:09.782 [2668] DEBUG - Looking for path match for [F:\Plex\Shows\Adventure Time\Season 2\Adventure Time - S02E23 - Videomakers.mkv]
Jan 02, 2021 13:46:09.784 [15496] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 02, 2021 13:46:09.786 [2668] DEBUG - Skipping hash check, no size match for 520183429 bytes.
Jan 02, 2021 13:46:09.786 [2668] DEBUG - No match for hash.
Jan 02, 2021 13:46:09.786 [2668] DEBUG - Checking descendants of Adventure Time
Jan 02, 2021 13:46:09.786 [2668] DEBUG - -> Searching down into Adventure Time/Season 2
Jan 02, 2021 13:46:09.786 [2668] DEBUG - Checking descendants of Adventure Time/Season 2
Jan 02, 2021 13:46:09.787 [2668] DEBUG - -> FOUND metadata item (show)
Jan 02, 2021 13:46:09.787 [2668] DEBUG - -> We found a local media item with rooted metadata in Adventure Time/Season 2
Jan 02, 2021 13:46:09.787 [2668] DEBUG - Found existing show 4492
Jan 02, 2021 13:46:09.788 [2668] DEBUG - Creating season 0 for show 'Adventure Time'
Jan 02, 2021 13:46:09.788 [2668] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.788 [2668] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.800 [2668] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.800 [2668] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.801 [2668] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.815 [2668] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.816 [2668] DEBUG - Added new metadata item () with ID 4516
Jan 02, 2021 13:46:09.816 [15496] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 02, 2021 13:46:09.816 [2668] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.816 [2668] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.817 [2668] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.818 [2668] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.818 [2668] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.831 [15496] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache
Jan 02, 2021 13:46:09.831 [2668] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/changestamp
Jan 02, 2021 13:46:09.831 [2668] DEBUG - Added new metadata item (Videomakers) with ID 4517
Jan 02, 2021 13:46:09.831 [15496] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/flushMetadataCounterCache

```

The only thing that seems to be working is removing “Videomakers” from the filename, but that leaves the episode with the wrong name in Plex.

---

<div class="post-metadata">

**Author:** ![Dan\_Bev](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dan_bev/32/226338_2.png) [@Dan\_Bev](https://forums.plex.tv/u/Dan_Bev)\
**Post date:** [January 2, 2021, 10:27pm UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/7 "2021-01-02T22:27:51Z")

</div>

If Local Media Assets is above TheTVdb in your your TV Show agents list, move it lower.

I’m sure someone with more experience will know what’s going on.

If you want to leave it as Adventure Time - S02E23.mkv you can always go in and edit the episode name after it’s scanned into Season 2.

---

<div class="post-metadata">

**Author:** ![gsingh93](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gsingh93](https://forums.plex.tv/u/gsingh93)\
**Post date:** [January 3, 2021, 2:05am UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/8 "2021-01-03T02:05:55Z")

</div>

While checking my settings, I found the problem. I’m using the Absolute Series Scanner instead of the Plex scanner, since I have a lot of Anime shows mixed with normal shows. There was a bug in this scanner where if it saw the string “omake” in the title (which is the Japanese word for “extras”), it would mark the episode as a special. I put up a PR to only do this if “omake” appears as a full word, and not as a substring of another word (like “videomakers”): [https://github.com/ZeroQI/Absolute-Series-Scanner/pull/323](https://github.com/ZeroQI/Absolute-Series-Scanner/pull/323)

Thanks for the help everyone!

---

<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:** [April 3, 2021, 2:06am UTC](https://forums.plex.tv/t/plex-putting-episode-in-wrong-season/672966/9 "2021-04-03T02:06:05Z")

</div>

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