TV Series matching mismatch

Server Version#:1.19.4.2935
Player Version#:Any
Server: Ubuntu Server 18.04

Long time PMS user, tired of TV series not matching or mismatching.
Examples from just today:
Folder name: Perry_Mason_2020
Mismatched to: Perry Mason (1934)
Folder name: Lol_Australia
Did not match to: LOL: Australia
Folder name: Double_Cross_2020
Mismatched to: Double Cross (2013)
Folder name: Central_Park
Mismatched to: Central Park West
Folder name: Inside_Monaco_Playground_of_the_Rich
Did not match to: Inside Monaco: Playground of the Rich

Can we please have the matching criteria (Regular Expression) a user editable field? 75% of the time I add a new series, it doesn’t match correctly. Of the times I have to fix the match, about 50% of the time I have to get the TheTVDB_ID because it won’t show in the search, with or without using the year field.

On the other hand, recent successful matches:
Folder name: Impractical_Jokers_Dinner_Party
Folder name: The_Politician
Folder name: Amazing_Animal_Births

Plex is very picky with TV show naming and directory structure. Try using Plex naming and organization guidelines.

See Your Media → TV Show Files (Naming and Organizing).

When renaming and reorganizing, Plex Dance the entire show. This will remove the mismatched information from the Plex Server database.

For example, this matched without issue for me:

/A TV Show Library  <-- TV Library points here
  /Perry Mason (2020)
    /Season 01
      /Perry Mason (2020) - s01e01.mkv
      /Perry Mason (2020) - s01e02.mkv
      /Perry Mason (2020) - s01e03.mkv
      /Perry Mason (2020) - s01e04.mkv

Edit: LOL: Australia did not auto match. The manual match found it immediately.

Allowing spaces in file/folder names is not only bad practice, it makes writing code to accommodate for it quite difficult. In Linux based systems it is even more difficult. That’s just the OS’s option to allow it. Now onto Plex’s logic pertaining to spaces in folder names. Their code “requires” this bad practice in naming. And requiring a colon in the folder name as well? This isn’t good file system management.

I posted successful matches for the purpose of showing that Plex does allow for filenames without spaces. This needs to be improved.

If I may?

That’s why we have " and ' in Linux as well as \

“_” is not whitespace. That’s the problem here.

I’ve been coding for a long time in shell scripting and programming.
Spaces are something you get used to and becomes second nature.

Just leave out any illegal/special characters. Use LOL Australia.

You got lucky. It works until it doesn’t.

Here’s a post from @ChuckPa with details on how Plex matches things:

Is anything other than “space” whitespace? I’ve been coding for 20 years as well. Allowing spaces in filenames is not optimal.

Btw, I’ve been a Plex user for over 5 years, I’ve known of this limitation, and I post these to gripe about it until Plex allows for this. Hell I’d love to do it for them/us. But giving the user access to use our own Regex matching patterns would help out everybody.

I can do you one better. :slight_smile:

The entire matching system, as we have it now, is done in Python.
That’s being replaced completely by C++.

Python is terrible at tokenizing and string processing where C++ slices and dices with ease.

I’ve tried the new scanner for movies. The test comparison is, with my names perfectly named by FileBot, :

What would take 3-4 hours on Python, with at least a few misses

  • becomes -

7 minutes with zero misses over my 40 Mbps bonded VSDL line.

There is a forum thread where you can try it on the movie scanner.
The TV scanner is being finished now as we discuss here.

1 Like

For the most part, no issues with movie matching. Also helps that I don’t know the website it scrapes from, whereas with TV I know TheTVDB.com
I’m tempted to try out the new movie scanner.

Here is the thread:

Btw the scripts I’ve made for my system are Perl for some, Python for others.

what exists here is Python 2.7 based. That should explain a great deal ?

1 Like

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