Plex putting episode in wrong season

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:

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

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

Maybe the file has embedded metadata?

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:

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

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

^^^^ 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 to clear that wrong assignment from Plex’s database.

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:

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.

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.

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

Thanks for the help everyone!

1 Like

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