After upgrading certain shows need manual metadata refresh after every scan

Server Version#:1.25.4.5487
Plex Media Server Logs_2022-02-07_20-26-54.zip (6.5 MB)

Player Version#:

I’ve upgraded my TV library and two shows constantly show as unavailable after every scan. If I manually run refresh metadata they come back. The shows I know this happens to for sure are Psych and King of the Hill.

Is R:\ a network drive? If so, check your network connection. There are several hundred network error messages in the log files for multiple shows. Entries from your log files are below.

Also, clean up the naming.

Neither of these align very well with Plex naming requirements:
R:\TV\King of the Hill\King.of.the.Hill.S13.1080p.WEB-DL.DD5.1.H.264-NTb\King.of.the.Hill.S13E01.Dia-BILL-ic.Shock.1080p.WEB-DL.DD5.1.H.264-NTb.mkv

R:\TV\King of the Hill\King.Of.The.Hill.S13E20.1080p.BluRay.x264-DEiMOS.mkv

At a minimum, add a season folder. Adding the year helps as well.
After renaming and reorganizing, Plex Dance the entire show.

R:\TV\King of the Hill (1997)\Season 13\King of the Hill (1997) s13e20 [1080p.etc].mkv

Naming and Organizing Your TV Show Files


Feb 07, 2022 19:00:56.185 [112944] WARN - Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: An unexpected network error occurred: "R:\TV\King of the Hill\King.Of.The.Hill.s08.WEB-DL.AAC.2.0.H264-BTN"
Feb 07, 2022 19:00:56.185 [112944] DEBUG - Scanner: Processing directory R:\TV\King of the Hill\King.of.the.Hill.S07.WEB-DL.AAC.2.0.H.264-BTN (parent: yes)
Feb 07, 2022 19:00:56.185 [104656] DEBUG - Path matched, we're reusing media item 1285337
Feb 07, 2022 19:00:56.186 [104656] DEBUG - Bringing back media item 1285337 to life.
Feb 07, 2022 19:00:56.186 [112944] WARN - Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: An unexpected network error occurred: "R:\TV\King of the Hill\King.of.the.Hill.S07.WEB-DL.AAC.2.0.H.264-BTN"
Feb 07, 2022 19:00:56.186 [112944] DEBUG - Scanner: Processing directory R:\TV\King of the Hill\King.of.the.Hill.S06.480p.WEB-DL.AAC2.0.H.264-SA89 (parent: yes)
Feb 07, 2022 19:00:56.186 [104656] DEBUG - Updating deletion state for metadata item 155177, is has a dead item count of 1.
Feb 07, 2022 19:00:56.186 [104656] DEBUG - Updating deletion state for metadata item 155174, is has a dead item count of 24.
Feb 07, 2022 19:00:56.187 [104656] DEBUG - Updating deletion state for metadata item 155173, is has a dead item count of 13.
Feb 07, 2022 19:00:56.187 [112944] WARN - Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: An unexpected network error occurred: "R:\TV\King of the Hill\King.of.the.Hill.S06.480p.WEB-DL.AAC2.0.H.264-SA89"
Feb 07, 2022 19:00:56.187 [112944] DEBUG - Scanner: Processing directory R:\TV\King of the Hill\King.of.the.Hill.S05.480p.WEB-DL.AAC2.0.H.264-SA89 (parent: yes)
Feb 07, 2022 19:00:56.187 [104656] DEBUG - Looking for path match for [R:\TV\King of the Hill\King.Of.The.Hill.S13E23.1080p.BluRay.x264-DEiMOS.mkv]
Feb 07, 2022 19:00:56.188 [104656] DEBUG - Path matched, we're reusing media item 1285338
Feb 07, 2022 19:00:56.188 [104656] DEBUG - Bringing back media item 1285338 to life.
Feb 07, 2022 19:00:56.188 [112944] WARN - Error scanning directory, we'll skip and continue: boost::filesystem::directory_iterator::construct: An unexpected network error occurred: "R:\TV\King of the Hill\King.of.the.Hill.S05.480p.WEB-DL.AAC2.0.H.264-SA89"

R:\TV\Psych\Psych.The.Movie.2017.720p.HDTV.x264-AVS\Psych.S09E01.720p.HDTV.x264-AVS.mkv

Not sure what is going on with the above.

No mixing movies and TV shows in the same library. That will definitely cause problems with the Plex scanners.

As with King of the Hill, clean up the naming and organization and then Plex Dance the entire show.

@FordGuy61 Why is this only an issue after upgrading the library? The files were the same file names before and never had any issues and the network drive has been the same and also never had issues before.

Also those were just 2 examples. The majority of the shows in my library are having this issue after upgrading.

Legacy agent support is going to be dropped and the old agents use different logic for scanning, and the logic used in the Plex scanner is always adapting.

To reuse a standard reply and hopefully help you in this situation:
If you want to save yourself a lot of time I would recommend using Download - tinyMediaManager and use ${title} (${year}) {imdb-${imdb}} as the new name format.

The forum is full of “but it worked before…” posts.

You got lucky. The naming and organization you use is not officially supported (and mixing movies and TV shows has always caused problems).

If you spend the time up front to correctly name and organize your media it pays off later.

There are several tools that make the job very easy. Tiny Media Manager, as mentioned by @dbirch, FileBot is used by many people, also PowerRename in Microsoft PowerToys for simple pattern matching renaming.

The closer you follow the formats laid out in the Plex documentation the easier time you will have with Plex correctly recognizing your media.

Plex DocumentationYour Media

I’ve fixed the issue with TV Movies being in their TV Show folders so hopefully that helps. However, if the forums is full of “it worked before” I hope the developers take that as a sign that Plex Scanner needs some serious work.

I understand that if I spent hours renaming everything it would help, but considering that wasn’t required in the past is what is frustrating.

I will start by updating the series directories to include title year and imdb as @dbirch suggested to see if that helps.

For TV shows you should use the TVDB id not the IMDB id.

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