cannot add external .srt files for shows that use 4 digit seasons - storyville S2013 E5, S2014 E7

it sesms a bug prevents plex from seeing subtitles for sortvills, where the series takes the form season 20xx ex.
i have checked all the folder setup and naming convention details, also checked TVDB and I have reproduced this on two separate PMS
i have removed, replaced, renamed rescanned, refreshed… the matching .srt simply are not picked up. They are fine in VLC player.
the episodes and subs are ripped from BBC with get_iplayer -
Several other shows and series that I have ripped exactly like that with get_iplayer are fine, their subs are picked up OK - so by elimination it is the date format season ID used by TVDB for storyville ( S2013, S2014 … instead of the normal season s01,s02,s03, )… that is tipping up the server matching process . the eipsode metadata is sorrectly found and shown, but they show as subtitles none despite theire being matching srt files , correctly named, alongside the mp4 files
http://thetvdb.com/?tab=series&id=82300
anyone else seen or can reproduce this?
I had to remux my subs into mkv with Mkvtoolnix as a workaround

Coincidentally, I just added several MP4 episodes of Looney Tunes. Same behaviour. The sidecar subtitles don’t show up. Files that were previously added as MKV show only one subtitle available, even though they have both an embedded subtitle and a sidecar subtitle. (I never caught that bug before, but obvious once it’s been pointed out)

Attaching logs and an a couple of XML files if they are of any assistance, but since the subtitles don’t scan, not sure if it will help.

Files are named in this manner:
Looney Tunes
… Season 1955
… … Looney Tunes S1955E23.mp4
… … Looney Tunes S1955E23.eng.srt

The MKV’s are similar, but only show one subtitle, even though there is both an embedded and sidecar subtitle.

little bump here… maybe a word of acknowledgement from someone in the know… :slight_smile:

I spent a few hours trying to track this down and ended up digging into the LocalMedia Agent python scripts and found the comment/code that explains exactly what’s going on:

  •  # If we've got a date based season, ignore it for now, otherwise it'll collide with S/E folders/XML and PMS
    
  •  # prefers date-based (why?)
    

I found this discussion but there was no resolution:

I’m in the process of trying to edit the script myself to see if I can get it to work.

I linked the wrong discussion in the previous post. This is the right one: https://github.com/plexinc-agents/LocalMedia.bundle/issues/49

The previous github link (https://github.com/plexinc-agents/LocalMedia.bundle/commit/b3f7b1461e6bb987e2b8be5bf383a96e76617198) is the offending change that intentionally disabled the functionality that we are looking for.

I manually edited init.py in this directory (C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-2d20185b0\LocalMedia.bundle\Contents\Code) and was able to get it to work. I basically just reverted the change and restarted PMS and now my subtitles are loading correctly again.

I’m assuming that this is just a temporary workaround and that this script will get updated automatically in future server updates and the “fix” will get wiped so this workaround will have to be repeated.