Matching the show 24

Has anyone had trouble getting the 24th episode of seasons 1-8 of the show 24 to show up in Plex? I’ve tried scanning multiple ways and renaming the files elsewhere and moving them back but I can never get episode 24 of each season to show up. I’m guessing it’s because the scanner is ignoring the number 24 in the filename because it knows that’s the name of the show (so it’s just see S01E for example instead of S01E24) which is causing it to think it is not in a tv filename format so it ignores it. Any thoughts on how to resolve this? Running the scanner from command line gives the error below for when it scans episode 24 (first line), then shows the success it has scanning the other 23 episodes.

Got nothing for: S01e
GUI: Scanning 24 Season 1 Episode 1
GUI: Scanning 24 Season 1 Episode 2
GUI: Scanning 24 Season 1 Episode 3
GUI: Scanning 24 Season 1 Episode 4
GUI: Scanning 24 Season 1 Episode 5
GUI: Scanning 24 Season 1 Episode 6
GUI: Scanning 24 Season 1 Episode 7
GUI: Scanning 24 Season 1 Episode 8
GUI: Scanning 24 Season 1 Episode 9
GUI: Scanning 24 Season 1 Episode 10
GUI: Scanning 24 Season 1 Episode 11
GUI: Scanning 24 Season 1 Episode 12
GUI: Scanning 24 Season 1 Episode 13
GUI: Scanning 24 Season 1 Episode 14
GUI: Scanning 24 Season 1 Episode 15
GUI: Scanning 24 Season 1 Episode 16
GUI: Scanning 24 Season 1 Episode 17
GUI: Scanning 24 Season 1 Episode 18
GUI: Scanning 24 Season 1 Episode 19
GUI: Scanning 24 Season 1 Episode 20
GUI: Scanning 24 Season 1 Episode 21
GUI: Scanning 24 Season 1 Episode 22
GUI: Scanning 24 Season 1 Episode 23

No 24 picks up fine for me. I just doubled checked and all my 24th episodes of the season are showing in the library.

Mine is titled like so…

/TV Shows
…/24
…/Season 01
… 24 - S01E01 - 12-00 A.M.-1-00 A.M - WEBDL-1080p.mkv
… 24 - S01E02 - 1-00 A.M.-2-00 A.M - WEBDL-1080p.mkv

^^ that naming is not in compliance with Plex Naming Standards:
https://support.plex.tv/hc/en-us/articles/200220687-Naming-Series-Season-Based-TV-Shows

Here’s ‘24’ at TVDB: http://thetvdb.com/?tab=series&id=76290&lid=7

This naming and structure is in compliance with Plex Naming Standards and will produce reliable results:

A TV Show Library/ <—Plex aimed here
…24/
…Season 01/
…24 - S01E01.XXX

@JuiceWSA said:
^^ that naming is not in compliance with Plex Naming Standards:
https://support.plex.tv/hc/en-us/articles/200220687-Naming-Series-Season-Based-TV-Shows

Here’s ‘24’ at TVDB: http://thetvdb.com/?tab=series&id=76290&lid=7

This naming and structure is in compliance with Plex Naming Standards and will produce reliable results:

A TV Show Library/ <—Plex aimed here
…24/
…Season 01/
…24 - S01E01.XXX

i actually did have the indents in, but the post edited them out, (white spacing), it works for me, and all my shows =)

You naming ‘may’ work today… tomorrow it ‘may’ fail. Correct naming works today, tomorrow and the next day. File naming/structuring not in compliance with Plex naming standards can produce unpredictable results. Typically I don’t care for things that are unpredictable so to eliminate the possibility of random failures in my Plex ecosystem I let FileBot pre-match and re-name all my files to be 100% in compliance (link in my signature).

You may enjoy a more random approach.

My naming scheme is as follows:

Television/
…24/
…Season 01/
…24 - S01E21.mkv
…24 - S01E22.mkv
…24 - S01E23.mkv
…24 - S01E24.mkv

I recently needed to reset my library so this may have something to do with a recent scanner update, prior to resetting my library all episodes of 24 matched correctly.

@Kraevin said:
No 24 picks up fine for me. I just doubled checked and all my 24th episodes of the season are showing in the library.

Mine is titled like so…

/TV Shows
…/24
…/Season 01
… 24 - S01E01 - 12-00 A.M.-1-00 A.M - WEBDL-1080p.mkv
… 24 - S01E02 - 1-00 A.M.-2-00 A.M - WEBDL-1080p.mkv

And just to confirm this format above is in complete compliance with the naming guide .

This part, - 12-00 A.M.-1-00 A.M - WEBDL-1080p, is optional info that Plex ignores

Optional_Info is some additional optional information (e.g. episode title) and is ignored by Plex.

I wanted to add that if I rename one of the episode 24s to episode 25 (for example 24 - S01E25.mkv) then the scanner picks it up no problem but obviously it isn’t matched… Renaming it back to S01E24, scan again, and it is not found.

It’s possible the bundles associated with 24 became corrupt. A recent outage at TVDB, more local issues, etc. It happens to me all the time for a myriad of reasons… it’s just one of those things you deal with when working with Plex.

To completely re-boot the 24 information let’s do The Plex Dance and start new.

ALL Dance Steps required in this order:

  1. remove 24 from library - the entire show
    (SEE NOTE!)
  2. update library
  3. clean bundles
  4. empty trash
    update libraries, clean bundles, empty trash <----------: https://support.plex.tv/hc/en-us/articles/200392106-Library-Actions
  5. check, double check, triple check that ALL episodes are named correctly and structure is as you indicated (looks good to me).
  6. replace 24 into library
  7. update library

Note: if one of those MKV files is an MP4 (stranger things have happened) and that MP4 file contains embedded metadata in the ‘Title’ field that is bogus that is enough to throw off a match… unless…:

Move Local Media Assets out of the top slot in your Agent lists (might as well do them all - so you can use MP4 files at some point in the future if the mood strikes). Don’t ‘uncheck’ LMA… just move it down the lists to the bottom:
https://support.plex.tv/hc/en-us/articles/200241558-Agents

I have gone through that process multiple times but just did again to appease you, it did not work.

I have gone as far as creating a new library just for 24 with no success, I have changed the directory of the databases and caches and restarted Plex so it would start up as brand new and not use any of my old bundles with no success. It’s not an issue with the container because like I said if I change the file to 24 - S01E25.mkv the scanner finds it and it can be played successfully on clients. I keep Local Media Assets off for all libraries anyway because I like the consistency that comes from the other agents or I like to enter my own information and data into the library.

I has to be an issue with the latest scanner, I wish I could view the code for the scanner but I’m unable to locate it. Can someone point me in the direction of the scanner’s code so I can try to fix this in the code and offer the solution up?

I found the scanner files that likely need to be edited, within the file /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-d34b464/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py (my server is on a Mac) I found the block of code below:

  # Make sure an episode name didn't make it into the show.
  for rx in ends_with_episode:
    show = re.sub(rx, '', show)

I believe this is stripping the name of the show from the filename while scanning which would result in the “24” being removed from the “S01E24”. I have tried commenting out that block, restarting the server, then scanning again but I’m still getting the same result. Is that the correct file to be editing for the scanner?

The file file can be view on GitHub: github.com/plexinc-plugins/Scanners.bundle/blob/master/Contents/Resources/Series/Plex%20Series%20Scanner.py

EDIT: Actually, it looks like that block of code is removing the name of the episode from the name of the show, I’m going to continue looking through the code for a solution.

EDIT 2: Here are log details from the scan for one of the seasons, all of the seasons perform the same way.

Oct 07, 2016 14:01:37.471 [0x7fffc99133c0] DEBUG -     * Scanning directory /private/tmp/DATA/Videos/Television/24/Season 05 (parent: yes)
Oct 07, 2016 14:01:37.471 [0x7fffc99133c0] VERBOSE -     * Noting that '24/Season 05' was updated at 2016-09-20 16:37:49
Oct 07, 2016 14:01:37.471 [0x7fffc99133c0] VERBOSE -     * Taking directory '24/Season 05' (2197) out of the map (601 left)
Oct 07, 2016 14:01:37.500 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E01.mkv
Oct 07, 2016 14:01:37.500 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E02.mkv
Oct 07, 2016 14:01:37.501 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E03.mkv
Oct 07, 2016 14:01:37.502 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E04.mkv
Oct 07, 2016 14:01:37.502 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E05.mkv
Oct 07, 2016 14:01:37.503 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E06.mkv
Oct 07, 2016 14:01:37.503 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E07.mkv
Oct 07, 2016 14:01:37.504 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E08.mkv
Oct 07, 2016 14:01:37.504 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E09.mkv
Oct 07, 2016 14:01:37.505 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E10.mkv
Oct 07, 2016 14:01:37.505 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E11.mkv
Oct 07, 2016 14:01:37.506 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E12.mkv
Oct 07, 2016 14:01:37.506 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E13.mkv
Oct 07, 2016 14:01:37.507 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E14.mkv
Oct 07, 2016 14:01:37.507 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E15.mkv
Oct 07, 2016 14:01:37.508 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E16.mkv
Oct 07, 2016 14:01:37.508 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E17.mkv
Oct 07, 2016 14:01:37.508 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E18.mkv
Oct 07, 2016 14:01:37.509 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E19.mkv
Oct 07, 2016 14:01:37.509 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E20.mkv
Oct 07, 2016 14:01:37.510 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E21.mkv
Oct 07, 2016 14:01:37.510 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E22.mkv
Oct 07, 2016 14:01:37.511 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E23.mkv
Oct 07, 2016 14:01:37.511 [0x7fffc99133c0] DEBUG - Adding file for scanner: /private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E24.mkv
Oct 07, 2016 14:01:37.520 [0x7fffc99133c0] DEBUG - Directory had 24 files, database had 23 files, can't skip.
Oct 07, 2016 14:01:37.544 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 1
Oct 07, 2016 14:01:37.544 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E01.mkv]
Oct 07, 2016 14:01:37.545 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119757
Oct 07, 2016 14:01:37.545 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 2
Oct 07, 2016 14:01:37.545 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E02.mkv]
Oct 07, 2016 14:01:37.547 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119758
Oct 07, 2016 14:01:37.547 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 3
Oct 07, 2016 14:01:37.547 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E03.mkv]
Oct 07, 2016 14:01:37.548 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119759
Oct 07, 2016 14:01:37.549 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 4
Oct 07, 2016 14:01:37.549 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E04.mkv]
Oct 07, 2016 14:01:37.550 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119760
Oct 07, 2016 14:01:37.550 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 5
Oct 07, 2016 14:01:37.550 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E05.mkv]
Oct 07, 2016 14:01:37.552 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119761
Oct 07, 2016 14:01:37.552 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 6
Oct 07, 2016 14:01:37.552 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E06.mkv]
Oct 07, 2016 14:01:37.553 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119762
Oct 07, 2016 14:01:37.554 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 7
Oct 07, 2016 14:01:37.554 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E07.mkv]
Oct 07, 2016 14:01:37.555 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119763
Oct 07, 2016 14:01:37.555 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 8
Oct 07, 2016 14:01:37.555 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E08.mkv]
Oct 07, 2016 14:01:37.557 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119764
Oct 07, 2016 14:01:37.557 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 9
Oct 07, 2016 14:01:37.557 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E09.mkv]
Oct 07, 2016 14:01:37.558 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119765
Oct 07, 2016 14:01:37.559 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 10
Oct 07, 2016 14:01:37.559 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E10.mkv]
Oct 07, 2016 14:01:37.560 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119766
Oct 07, 2016 14:01:37.560 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 11
Oct 07, 2016 14:01:37.560 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E11.mkv]
Oct 07, 2016 14:01:37.561 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119767
Oct 07, 2016 14:01:37.562 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 12
Oct 07, 2016 14:01:37.562 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E12.mkv]
Oct 07, 2016 14:01:37.563 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119768
Oct 07, 2016 14:01:37.563 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 13
Oct 07, 2016 14:01:37.564 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E13.mkv]
Oct 07, 2016 14:01:37.565 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119769
Oct 07, 2016 14:01:37.565 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 14
Oct 07, 2016 14:01:37.565 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E14.mkv]
Oct 07, 2016 14:01:37.566 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119770
Oct 07, 2016 14:01:37.567 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 15
Oct 07, 2016 14:01:37.567 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E15.mkv]
Oct 07, 2016 14:01:37.568 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119771
Oct 07, 2016 14:01:37.568 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 16
Oct 07, 2016 14:01:37.568 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E16.mkv]
Oct 07, 2016 14:01:37.570 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119772
Oct 07, 2016 14:01:37.570 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 17
Oct 07, 2016 14:01:37.570 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E17.mkv]
Oct 07, 2016 14:01:37.571 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119773
Oct 07, 2016 14:01:37.572 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 18
Oct 07, 2016 14:01:37.572 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E18.mkv]
Oct 07, 2016 14:01:37.573 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119774
Oct 07, 2016 14:01:37.573 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 19
Oct 07, 2016 14:01:37.573 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E19.mkv]
Oct 07, 2016 14:01:37.575 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119775
Oct 07, 2016 14:01:37.575 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 20
Oct 07, 2016 14:01:37.575 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E20.mkv]
Oct 07, 2016 14:01:37.576 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119776
Oct 07, 2016 14:01:37.577 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 21
Oct 07, 2016 14:01:37.577 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E21.mkv]
Oct 07, 2016 14:01:37.578 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119777
Oct 07, 2016 14:01:37.578 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 22
Oct 07, 2016 14:01:37.578 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E22.mkv]
Oct 07, 2016 14:01:37.580 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119778
Oct 07, 2016 14:01:37.580 [0x7fffc99133c0] DEBUG -       * Scanning 24 Season 5 Episode 23
Oct 07, 2016 14:01:37.580 [0x7fffc99133c0] DEBUG - Looking for path match for [/private/tmp/DATA/Videos/Television/24/Season 05/24 - S05E23.mkv]
Oct 07, 2016 14:01:37.581 [0x7fffc99133c0] DEBUG - Path matched, we're reusing media item 1119779

Just to try something new, I renamed “24 - S01E24.mkv” to “24 - S01E24-E25.mkv”. I ran a scan after that and Plex adds just Episode 25 to my library, still no Episode 24 even if I’m saying they are in the same file. This is driving me nuts.

Well, don’t make yourself crazy or anything… you may have identified a bug and it may be time for more log-inspections if an employee would step in for an appearance…

or…

Just like any outsourced support personnel in India we have to run you through some initial steps to make sure it’s not something simple… we did that, but in my case Plex outsourced their support to West Virginia instead of India… good or bad as that may be…

I’m no log reader - unless something is blatantly obvious - but I know someone who is:
@OttoKerner to the rescue… :slight_smile:

I was able to get it resolved over on GitHub: github.com/plexinc-plugins/Scanners.bundle/issues/72

Here is the solution, it’ll be fixed in a future PMS release:

Edit /Bundles/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py

Replace the line:
whackRx = ['([hHx][\.]?264)[^0-9]', '[^[0-9](720[pP])', '[^[0-9](1080[pP])', '[^[0-9](480[pP])', re.compile(re.escape(show), re.IGNORECASE)]

With:
whackRx = ['([hHx][\.]?264)[^0-9]', '[^[0-9](720[pP])', '[^[0-9](1080[pP])', '[^[0-9](480[pP])', re.compile('\\b' + re.escape(show) + '\\b', re.IGNORECASE)]

I was editing the right file but taking the wrong approach.

Thanks a lot for this, I was tearing my hair out and this worked a treat. Hope it’s in the next release.

@b3ats said:
Thanks a lot for this, I was tearing my hair out and this worked a treat. Hope it’s in the next release.

I’m glad I’m not the only one!

Hello, I’m also having this problem.
Ripped my original 24 DVD box season 1-8 to MKV with MakeMKV.
My Plex Media Server 1.2.2.2857 is running on a MacMini with El Capitan.
Files are stored on a Synology NAS.
Folder/File structure
Series/
24/
Season 1/
24 - S01E01.mkv till 24 - S01E24.mkv
Season 2/
24 - S02E01.mkv till 24 - S02E24.mkv
Etcetera

Library recognizes episodes 1 till 23 for all seasons but episode 24 from all seasons is not recognized.
I then used the format for all episoded 24 - Day 1 1200 AM - 100 AM.mkv (etcetera for alle episodes).
Plex library recognizes all 23 episodes for every season correct.
But for example S01 episode 24 is placed in Season 11 with subscription 1100.

So after a search I came to this topic.
But I can’t find the file Plex Series Scanner.py.
When I go to ~/Library/Application Support/Plex Media Server/Scanners this folder is empty.
I created a folder Series and place the Plex Series Scanner.py into it.
(Copy and paste this code : https://github.com/plexinc-plugins/Scanners.bundle/blob/master/Contents/Resources/Series/Plex%20Series%20Scanner.py and then edit the whackRx rule).

Synology NAS : I moved the content to another folder. Format the episodes as
24 /
Season 1 /
24 - S01E01.mkv till 24 - S01E24
PMS : New library scan, empty recycle bin, restarted PMS
Synology NAS : I moved the content to my TV Series section
PMS : New library scan

But only the first 23 episodes are recognized.
What am I doing wrong?

Thanks in advance.

The file you need to modify is located at /Applications/Plex Media Server.app/Contents/Resources/Plug-ins-d34b464/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py

Thank you very much!
It’s working perfect right now!

(got that other location from : https://forums.plex.tv/discussion/19396/how-to-install-a-custom-scanner/p2)

I’m having this same problem now. Is it possible the fix isn’t merged into the DVR beta yet? I’ve noticed a number of updates come through since installing the DVR beta. I’m running beta 1.2.0.2838.