Show getting unmatched after library scan

server-linux

#1

Hey,

I'm running PMS Version 1.13.2.5154 on Ubuntu and I'm having problems with a show that always gets unmatched after each library scan. I always have to manually match it but it's not persisted as the next library scan unmatches it again and renames it to "Show S04".

My directory listing looks the following way:

dewey@example:~/completed$ tree Show
Show
└── Season 4
    ├── Show.S04E01.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E02.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E03.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E04.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E05.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E06.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E07.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E08.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    ├── Show.S04E09.1080p.WEB.H264-WHYYOUNOMATCH.mkv
    └── Show.S04E10.1080p.WEB.H264-WHYYOUNOMATCH.mkv

1 directory, 10 files
dewey@example:~/completed$ tree Show.S04.1080p.WEB.H264-WHYYOUNOMATCH/
Show.S04.1080p.WEB.H264-WHYYOUNOMATCH/
├── Show.S04E01.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E02.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E03.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E04.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E05.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E06.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E07.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E08.1080p.WEB.H264-WHYYOUNOMATCH.mkv
├── Show.S04E09.1080p.WEB.H264-WHYYOUNOMATCH.mkv
└── Show.S04E10.1080p.WEB.H264-WHYYOUNOMATCH.mkv

0 directories, 10 files

I checked the logs but couldn't find the correct place where I see why something gets unmatched. If you can point me in the right direction what's going on there that would be appreciated.

Thanks


#2

You should spend a minute to give some love to the folder structure / file naming.
Fixing this will save you from manually matching things over and over again.

  1. “Show” doesn’t appear to be the official name – at least not the name this show is known by in either IMDB.com or TheTVDB.com
  2. Plex can be very touchy about file names when it comes to tv-shows

Support Article Naming Series/Season based TV Shows says the structure should be like this…:
TV Shows <- the folder added to your Plex Library
.. / Show Name (Year) <- main folder for that tv show, assuming the show is called Show Name and first aired in Year
.. .. / Season 01 <- 2-digit season number
.. .. .. / Show Name (Year) - s01e01.mkv
.. .. .. / Show Name (Year) - s01e02.mkv
.. .. .. / ...
.. .. / Season 02
.. .. / ...

Including the year the show first aired is not required – however I recommend doing it to avoid mixing up your content in case there’s other shows with similar names.
File names can optionally include the episode title after the sXXeYY pattern (e.g. Show Name (Year) - s01e01 - Pilot.mkv). Plex will ignore this. If you feel the need to keep all the other wherever you downloaded those files, put it in square brackets – this will be ignored by Plex and avoid further confusion in the scanning/matching process.


#3

Thanks for your response.

  1. The show name is “Bosch”, I just wanted to make it a bit more generic for the problem description and choose a placeholder.
  2. Renaming the content is not an option in my case and I never had this problem before with similarly named content. I’d say the naming scheme of that content as it as standard as it gets for shows and should be picked up correctly by the scanner and I’m sure it did get picked up correctly in the past. If I had problems in the past I matched it manually and it persisted. What’s the point of matching manually if it gets reset on the next scan?

#4

well… people get away with poorly named files until the no longer do…


#5

on a more supportive vibe… can you please post your logs?
sounds like something might be wrong/broken with your database…

  • manually match the show
  • wait a moment
  • download the logs (Settings > Server > Help > Download Logs)

#6

@tom80H said:
well… people get away with poorly named files until the no longer do…

I’m very in favor of properly naming / tagging my content and my music library is flawlessly tagged files all around but the file names of my directory listing are as standard as it gets for content you don’t rip it yourself and is even “standardized” by the scene naming rules. Adding spaces and brackets to file names should not be necessary and I also never had a problem with that in Plex so far. It’s kinda part of the value proposition, drop your files in and we’ll match them as best as possible.

Thanks for trying to help anyway, here’s my logs attached.


#7

Sorry, I accidentally marked your question as resolved. I just wanted to upvote your question but hit the wrong button :smiley:


#8

Can I be of any assistance?

Regarding the show “Bosch”, I created test-episodes (used for metadata retrieval verification). Everything downloaded immediately.
The naming structure I have is as per specification. The equivalent FileBot renaming rule is /top/level/directory/{n}/Season {s}/{n} - {s00e00}. FileBot can also add the episode title if desired by using the {t} macro.

[chuck@lizum tv.119]$ ls -la Bosch
total 36
drwxr-xr-x 9 chuck chuck 4096 Jun 10 12:43 ./
drwxr-xr-x 4 chuck chuck 4096 Jun 10 12:41 ../
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:41 Season 01/
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:41 Season 02/
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:42 Season 03/
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:42 Season 04/
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:42 Season 05/
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:43 Season 06/
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:43 Season 07/
[chuck@lizum tv.120]$ ls -la Bosch/*01
total 88
drwxr-xr-x 2 chuck chuck 4096 Jun 10 12:41 ./
drwxr-xr-x 9 chuck chuck 4096 Jun 10 12:43 ../
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E01.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E02.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E03.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E04.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E05.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E06.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E07.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E08.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E09.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E10.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E11.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E12.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E13.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E14.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E15.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E16.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E17.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E18.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E19.mkv
-rw-r--r-- 1 chuck chuck  141 Jun 10 12:41 Bosch - S01E20.mkv
[chuck@lizum tv.121]$ 

As you can see in these screen captures, even though they are only dummy files, the episode thumbnails were downloaded and show below


#9

Do you see anything that’s off in my logs? Is the behavior to un-match something after matching it manually and then triggering a “Scan Library Files” expected?

Once I match it manually I also get all the episode metadata correctly, but that’s all discarded once I do the re-scan.

What I’m a bit confused about is that there are other shows in the folder like Homeland.S07.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb are parsed just fine even if the file name seems more messy.

I just tested to remove the “WEB” from Bosch, according to the logs it always send “Bosch WEB S04” to the search API, without cleaning it up first as it usually does (Removing BluRay, DVD, codecs and other stuff from the filename from my understanding):

Bosch.S04.1080p.WEB.H264-DEFLATE -> Bosch.S04.1080p.H264-DEFLATE

After that change it automatically got matched and it worked. Shouldn’t this be cleaned up automatically from the filename? It seems similar to this report from a few years ago: https://forums.plex.tv/discussion/212542/scanner-not-adding-movies-with-web-dl-in-filename

It looks like there the regex/parsing got updated to make it work correctly.


#10

You’re skirting on the edge of failure with your naming. Plain & simple.
The scanner automaton is good but it’s not infallible. Your naming is failing you. Time to bite the bullet and implement something that works.

  1. Homeland.S07.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb isn’t even close to right.
  2. Neither is Bosch.S04.1080p.WEB.H264-DEFLATE

Look at it this way:

ST-TNG S01 Makes perfect sense to you and me, right? (Star Trek: The Next Generation - Season 1)

What is the scanner supposed to make of that? A season directory? A series name? I can’t tell unless i know the context. Can you?

Go type that exact string into the search bar at TheTVDB and you will get ZERO results.

I get that you’re using torrents to get the media files. At least take the time to setup the automation to name the files right.
An old acronym I learned in Engineering school. “GIGO” (Garbage In - Garbage Out).

It’s getting poor naming for input and the results are equally poor coming out.

The link in my signature takes you to : https://plexapp.zendesk.com/hc/en-us/categories/200028098-Media-Preparation

There you will see: https://plexapp.zendesk.com/hc/en-us/articles/200220687-Naming-Series-Season-Based-TV-Shows

If you need help setting it up, I’m here to help. All you need do is ask.


#11

Thanks for your detailed response, yes I’m aware that it’s not named well. I’m just a bit confused because it never happened to me before and I always had files not named specifically after the Plex guidelines and Plex always magically dealt with it correctly :slight_smile:

Setting up the renaming is not a big issue, just not something I’d like to do straight way. I would like to understand where it goes wrong as Homeland and other way more confusing file names are parsed correctly. Is “WEB-DL” filtered out by the parser but “WEB” isn’t?

I just did some re-naming experiments and the following happened that I don’t understand:

Homeland.S07.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb -> Gets matched correctly
Bosch.S04.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb -> Unmatched, gets unmatched after refreshing library files

But even if it wouldn’t match with my garbage file names: Is it normal that it gets unmatched on re-scan? If I manually have to match it once that’s not a huge issue to me, as long as it’s persistent.


#12

It worked in the past because TVDB and PMS didn’t need to be so exacting (less content / fewer names to contend with).
Now, in light of names like “The Flash” and “The Flash (2014)”, everything has to be more exacting.
If you go to TheTVDB and enter a marginal search string, you end up with a list to select from. This is what’s starting to happen to everyone with marginal names.

In this case “Bosch” is the series name. 1 token long.
The given string, “Bosch, S04, 720p, AMZN, WEB-DL, DDP5, 1, H, 264-NTb” is 9 tokens long (i’ve delineated to show you the result of your using . (period) for everything.

The series name (1 token) and the given string match at the first token. This is enough to start further determination.
However, by the time all tokens are compared, only 1 of the 9 given tokens in the name has actually matched.

This results in a 11% match likelyhood and why it falls out.
It failed the 85% required minimum to sustain an automatic match.

do this.

  1. Move the whole series out and Scan, Empty, and Clean bundles (purge all entries in Plex of the series)
  2. Now make the series name as per naming spec (only do the Series title, “Season 1/”, and the first Episode (CLEAN file name for the episode - per std)
  3. Copy it into position.
  4. Scan and watch.
  5. If that fails, I want your logs

#13

Okay, I’ll try to reproduce it that way. I’d still be interested in an answer to the question I edited to my previous post:

But even if it wouldn’t match with my garbage file names: Is it normal that it gets unmatched on re-scan? If I manually have to match it once that’s not a huge issue to me, as long as it’s persistent.


#14

Unless you manually lock every single episode, it’s subject to rematch and falling out.

The whole premise of Plex is to automate so you don’t have to dictate how it does it. The more one tries to micromanage it, the worse it gets.
Give in, give it the naming it wants (has always wanted), and be done.

All my media passes through FileBot on the way in. I never have to touch anything. PMS never misses either when matching.


#15

@deweynaut

I’m taking another fine grain look through your matching logs.

Does “Robert’s Web” or “Web Therapy” mean anything to you?

Please look at the names here.

2018-06-10 12:18:17,346 (7fdfddde0700) :  INFO (__init__:411) - UMP: MetadataSearchResult(lang='en', thumb=None, score=65, year=1950, id='76669', name='The Web')
2018-06-10 12:18:17,347 (7fdfddde0700) :  INFO (__init__:411) - UMP: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/uozp3VmvTFWomFPaKtS2d5kZBGt.jpg', score=65, year=2010, id='208181', name="Robert's Web")
2018-06-10 12:18:17,349 (7fdfddde0700) :  INFO (__init__:411) - UMP: MetadataSearchResult(lang='en', thumb=None, score=65, year=1986, id='251801', name='Bosco Adventure')
2018-06-10 12:18:17,350 (7fdfddde0700) :  INFO (__init__:411) - UMP: MetadataSearchResult(lang='en', thumb=None, score=65, year=1985, id='308328', name='Oscar')
2018-06-10 12:18:17,351 (7fdfddde0700) :  INFO (__init__:411) - UMP: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/6u8GiEsVdJ8pVJTIxayLsCUkWuS.jpg', score=65, year=2008, id='144201', name='Web Therapy')
2018-06-10 12:18:17,354 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb=None, score=67, year=2005, id='84287', name='Webdreams')
2018-06-10 12:18:17,355 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/vYSFtfY4pdSSnOxY8NJU85pGz6p.jpg', score=67, year=2015, id='292047', name='The Woods')
2018-06-10 12:18:17,357 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb=None, score=67, year=2007, id='83655', name='Stellenbosch')
2018-06-10 12:18:17,358 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/kXYd9uGWhVsYD3vzZ5pA4wPvqC4.jpg', score=67, year=2011, id='250078', name='Web Therapy')
2018-06-10 12:18:17,359 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/niLjAit2TiCz9rkrNWwfautYGJ8.jpg', score=67, year=2014, id='278659', name='Web of Lies')
2018-06-10 12:18:17,360 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/aLABZhyxRbcNpi6INAj8rGGk7c0.jpg', score=67, year=1983, id='77783', name='Webster')
2018-06-10 12:18:17,362 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/1phGmDufRU5jmUoPdNIuqiTLfEc.jpg', score=67, year=2014, id='277928', name='Bosch')
2018-06-10 12:18:17,363 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/6u8GiEsVdJ8pVJTIxayLsCUkWuS.jpg', score=65, year=2008, id='144201', name='Web Therapy')
2018-06-10 12:18:17,364 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb=None, score=65, year=1985, id='308328', name='Oscar')
2018-06-10 12:18:17,365 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb=None, score=65, year=1986, id='251801', name='Bosco Adventure')
2018-06-10 12:18:17,367 (7fdfddde0700) :  INFO (__init__:516) - Final result: MetadataSearchResult(lang='en', thumb='https://image.tmdb.org/t/p/w154/uozp3VmvTFWomFPaKtS2d5kZBGt.jpg', score=65, year=2010, id='208181', name="Robert's Web")

Notice the score = 65. Also look at the year reported. I cannot see from this log whether the issue is how the file name is parsed or not a strong enough match with how TheTVDB lists it.


#16

Use Filebot AMC script. It will remove all manual steps for you. Point it to a folder (outside Plex), let it do its magic automatically and make a hard link to the file when it creates the correct named file and organized folder within Plex. Done.