How can I override a program's season number with a .plexmatch file?

Server Version#: 1.40.4.8679

I’m trying to override the season number in some files, because they are named with TVDB Airing order but I have all the other seasons in DVD order. Yes, I know that renaming the files would be best, but I want to know if I can override the file naming with a .plexmatch file. File naming is in normal SxxEyy format. I thought I could just have the plexmatch file in the directory for the season with Season: xx as one of the lines, but that doesn’t seem to be effecting it. So maybe I have to use a Pattern match?

I’ve been over the support document for this more than once, but I’m not quite grasping the syntax to actually enter. It needs to be able to function regardless of the number of files in the directory, just ignore the “Sxx” in the name and and use my specified season number instead.

From some quick testing, the Pattern match should work for this. If you have the following folder structure:

/Data/TV/My Cool Show (2012)/
  Season 01/
    .plexmatch
    My Cool Show - S01E01 - Title.mp4
    My Cool Show - S01E02 - XYZ.mkv

The following .plexmatch contents should tell Plex to move them to Season 3:

Pattern: My Cool Show - S{se,+2}E{ep} - *

If you have episodes from multiple seasons in the same folder, but they all need to map to the same season in Plex, you can add multiple entries with different offsets:

# Map S01 to S03
Pattern: My Cool Show S{se,1-1,+2}E{ep} - *

# Map S02 to S03
Pattern: My Cool Show S{se,2-2,+1}E{ep} - *

# Map S05 to S03
Pattern: My Cool Show S{se,5-5,-2}E{ep} - *
3 Likes

Ah, I see. I have to list the notation from the numbering (S, E) and identify the use of the number (se, ep) both. I thought I was needing to set variables in square brackets or something for a bit there. Thanks!

I tested it out and it worked fine.

1 Like

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