SRT subtitles not being picked op anymore

Server Version#: plexmediaserver/public,now 1.21.1.3876-3c3adfcb4 amd64 [installed]
Player Version#: n.a.

According to the Plex Players (web, android & kodi), I’m missing subtitles for a bunch of tv show episodes.

The subtitles are present in the media’s path:

$ pwd && ls -lha | grep -i s02e07
/mnt/media/video/TV shows/The 100/Season 02
-rwxr-xr-x 1 tom tom  44K Oct  4 11:02 The 100 - S02E07 - Long Into an Abyss Bluray-1080p.en.srt
-rwxr-xr-x 1 tom tom 485M Oct  4 08:47 The 100 - S02E07 - Long Into an Abyss Bluray-1080p.mkv

Here’s what debug logging spits out while

  • doing a Scan Library for library item TV Shows,
  • followed by a Refresh Metadata for the above S02E07

Paste url for debug logging

And here’s the Get Info XML for the item afterwards (sadly without subtitle stream) :

MediaContainer xml
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="9cc7041c-b546-4bb7-938c-460b777b90fa" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1609841254">
<Video ratingKey="22590" key="/library/metadata/22590" parentRatingKey="22583" grandparentRatingKey="22582" guid="com.plexapp.agents.thetvdb://268592/2/7?lang=en" parentGuid="com.plexapp.agents.thetvdb://268592/2?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://268592?lang=en" type="episode" title="Long Into an Abyss" grandparentKey="/library/metadata/22582" parentKey="/library/metadata/22583" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" grandparentTitle="The 100" parentTitle="Season 2" contentRating="TV-14" summary="As Abby and Jaha each try to establish their authority, Clarke comes up with a plan to stop the Grounders' attack. At Mount Weather, Jasper, Monty, Miller and Harper plan their escape, as Dr. Tsing and Cage conduct deadly experiments." index="7" parentIndex="2" rating="7.8" year="2014" thumb="/library/metadata/22590/thumb/1601863223" art="/library/metadata/22582/art/1610961465" parentThumb="/library/metadata/22583/thumb/1601863227" grandparentThumb="/library/metadata/22582/thumb/1610961465" grandparentArt="/library/metadata/22582/art/1610961465" duration="2550567" originallyAvailableAt="2014-12-10" addedAt="1601797343" updatedAt="1601863223" chapterSource="media">
<Media id="29735" duration="2550567" bitrate="1592" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="aac" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="he-aac" videoProfile="main 10">
<Part accessible="1" exists="1" id="34577" key="/library/parts/34577/1601794041/file.mkv" duration="2550567" file="/mnt/media/video/TV shows/The 100/Season 02/The 100 - S02E07 - Long Into an Abyss Bluray-1080p.mkv" size="508186135" audioProfile="he-aac" container="mkv" deepAnalysisVersion="4" requiredBandwidths="3328,2378,2213,2213,2213,2213,2213,2213" videoProfile="main 10">
<Stream id="95750" streamType="1" default="1" codec="hevc" index="0" bitrate="1400" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="1080" codedWidth="1920" colorRange="tv" frameRate="23.976" height="1080" level="120" profile="main 10" refFrames="1" requiredBandwidths="3136,2186,2028,2028,2028,2028,2028,2028" width="1920" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)"> </Stream>
<Stream id="95751" streamType="2" selected="1" default="1" codec="aac" index="1" channels="6" bitrate="192" language="English" languageCode="eng" audioChannelLayout="5.1" profile="he-aac" requiredBandwidths="192,192,192,192,192,192,192,192" samplingRate="48000" title="MZABI" displayTitle="English (HE-AAC 5.1)" extendedDisplayTitle="MZABI (English HE-AAC 5.1)"> </Stream>
</Part>
</Media>
<Writer id="47135" filter="writer=47135" tag="James Thorpe"/>
<Chapter id="232" filter="thumb=232" index="1" startTimeOffset="0" endTimeOffset="240157" thumb="/library/media/29735/chapterImages/1"/>
<Chapter id="232" filter="thumb=232" index="2" startTimeOffset="240157" endTimeOffset="559184" thumb="/library/media/29735/chapterImages/2"/>
<Chapter id="232" filter="thumb=232" index="3" startTimeOffset="559184" endTimeOffset="1034909" thumb="/library/media/29735/chapterImages/3"/>
<Chapter id="232" filter="thumb=232" index="4" startTimeOffset="1034909" endTimeOffset="1352851" thumb="/library/media/29735/chapterImages/4"/>
<Chapter id="232" filter="thumb=232" index="5" startTimeOffset="1352851" endTimeOffset="1847763" thumb="/library/media/29735/chapterImages/5"/>
<Chapter id="232" filter="thumb=232" index="6" startTimeOffset="1847763" endTimeOffset="2271311" thumb="/library/media/29735/chapterImages/6"/>
<Chapter id="232" filter="thumb=232" index="7" startTimeOffset="2271311" endTimeOffset="2522854" thumb="/library/media/29735/chapterImages/7"/>
<Chapter id="232" filter="thumb=232" index="8" startTimeOffset="2522854" endTimeOffset="2550568" thumb="/library/media/29735/chapterImages/8"/>
<Marker type="intro" startTimeOffset="205755" endTimeOffset="241004"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

After a Plex Dance the subtitle does appear.
What is going on here ?

Settings - Server - Agents - Shows - TheTVDB
is there a line named “Local Media Assets (TV)”
and is it activated?

yes :

image

This screenshot shows they’re activated for “Personal Media”.
But your show is matched to the TheTVDB agent.
You need to click on “TheTVDB”.

My bad ! (I never fully understood that screen’s layout.)
But the answer remains Yes
image

Grab that LMA line and drag it down and upwards a few times. (I recommend to leave it below the line “TheTVDB”).
Then Refresh Metadata of the whole TV show “The100”.

no change
image

I dragged LMA all the way down, step by step, and back up to its final position, step by step.

I am no Linux expert, but I seem to remember that external subs can fail if you’ve exceeded the threshold for inotify memory: Linux Tips

I have seen this on some movies. Especially after upgrading to the new agent for matching movies. What usually works for me is one of these options

  1. Remove the movie/show-folder and do a scan. Add the folder again and re-scan.
  2. Do an Analyze and then Refresh Metadata on the item
    analyze

no go… the PMS media library is 2079 folders in size.
The default size of the Linux inotify table is 8192 directories.
This PMS isn’t impacted by the initofy default limit.

well yes, that is what i mentioned in OP…

But we can surely all agree that Plex Dancing on libraries every.single.time a subtitle is added is in no way a solution.

Could you inspect the XML of an episode which has already been “danced”?
I am interested in the content of the guid property.

argh…I got confused troubleshooting this (prior to OP), even a Dance doesn’t make the SRT subtitle appear.
The only thing I’ve found to make it appear is to select “Upload”.
This is the xml after upload for our example S02E07 :

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="9cc7041c-b546-4bb7-938c-460b777b90fa" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1609841254">
<Video ratingKey="24013" key="/library/metadata/24013" parentRatingKey="22583" grandparentRatingKey="22582" guid="com.plexapp.agents.thetvdb://268592/2/7?lang=en" parentGuid="com.plexapp.agents.thetvdb://268592/2?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://268592?lang=en" type="episode" title="Long Into an Abyss" grandparentKey="/library/metadata/22582" parentKey="/library/metadata/22583" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" grandparentTitle="The 100" parentTitle="Season 2" contentRating="TV-14" summary="As Abby and Jaha each try to establish their authority, Clarke comes up with a plan to stop the Grounders' attack. At Mount Weather, Jasper, Monty, Miller and Harper plan their escape, as Dr. Tsing and Cage conduct deadly experiments." index="7" parentIndex="2" rating="7.8" year="2014" thumb="/library/metadata/24013/thumb/1610969792" art="/library/metadata/22582/art/1610969889" parentThumb="/library/metadata/22583/thumb/1601863227" grandparentThumb="/library/metadata/22582/thumb/1610969889" grandparentArt="/library/metadata/22582/art/1610969889" duration="2550568" originallyAvailableAt="2014-12-10" addedAt="1610969769" updatedAt="1610969792" chapterSource="media">
<Media id="31301" duration="2550568" bitrate="1594" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="aac" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="he-aac" videoProfile="main 10">
<Part accessible="1" exists="1" id="36144" key="/library/parts/36144/1601794041/file.mkv" duration="2550568" file="/mnt/media/video/TV shows/The 100/Season 02/The 100 - S02E07 - Long Into an Abyss Bluray-1080p.mkv" size="508186135" audioProfile="he-aac" container="mkv" videoProfile="main 10">
<Stream id="109960" streamType="1" default="1" codec="hevc" index="0" bitrate="1594" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="1080" codedWidth="1920" colorRange="tv" frameRate="23.976" height="1080" level="120" profile="main 10" refFrames="1" width="1920" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)"> </Stream>
<Stream id="109961" streamType="2" selected="1" default="1" codec="aac" index="1" channels="6" bitrate="192" language="English" languageCode="eng" audioChannelLayout="5.1" profile="he-aac" samplingRate="48000" title="MZABI" displayTitle="English (HE-AAC 5.1)" extendedDisplayTitle="MZABI (English HE-AAC 5.1)"> </Stream>
<Stream id="109962" key="/library/streams/109962" streamType="3" selected="1" codec="srt" language="English" languageCode="eng" format="srt" title="The 100 - S02E07 - Long Into an Abyss Bluray-1080p.en" transient="0" displayTitle="English (SRT External)" extendedDisplayTitle="The 100 - S02E07 - Long Into an Abyss Bluray-1080p.en (English SRT External)"> </Stream>
</Part>
</Media>
<Writer id="47135" filter="writer=47135" tag="James Thorpe"/>
<Chapter id="232" filter="thumb=232" index="1" startTimeOffset="0" endTimeOffset="240157" thumb="/library/media/31301/chapterImages/1"/>
<Chapter id="232" filter="thumb=232" index="2" startTimeOffset="240157" endTimeOffset="559184" thumb="/library/media/31301/chapterImages/2"/>
<Chapter id="232" filter="thumb=232" index="3" startTimeOffset="559184" endTimeOffset="1034909" thumb="/library/media/31301/chapterImages/3"/>
<Chapter id="232" filter="thumb=232" index="4" startTimeOffset="1034909" endTimeOffset="1352851" thumb="/library/media/31301/chapterImages/4"/>
<Chapter id="232" filter="thumb=232" index="5" startTimeOffset="1352851" endTimeOffset="1847763" thumb="/library/media/31301/chapterImages/5"/>
<Chapter id="232" filter="thumb=232" index="6" startTimeOffset="1847763" endTimeOffset="2271311" thumb="/library/media/31301/chapterImages/6"/>
<Chapter id="232" filter="thumb=232" index="7" startTimeOffset="2271311" endTimeOffset="2522854" thumb="/library/media/31301/chapterImages/7"/>
<Chapter id="232" filter="thumb=232" index="8" startTimeOffset="2522854" endTimeOffset="2550568" thumb="/library/media/31301/chapterImages/8"/>
<Marker type="intro" startTimeOffset="205755" endTimeOffset="241004"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

Hm, the guid was only interesting if the Dance worked.

Upload is circumventing the local media assets agent. So the fact that it works is interesting but not helpful in solving the issue at hand.
I’m afraid I am out of ideas and must wait for @ChuckPa 's input.

another crumb of info,
I’m running a mirror-PMS (all media is kept in sync via Syncthing) on a W10 machine,
This mirror has none of the symptoms. All subtitles are present as expected on that PMS,
also v1.21.1.3876

and another thing : subtitles embedded in mkv containers are present.

May I see the filenames please for the folder which contains the Movie and the subtitles? (ls -la /blah/blah/Seasion Xx)

well yes, but see OP ?

$ pwd && ls -lha | grep -i s02e07
/mnt/media/video/TV shows/The 100/Season 02
-rwxr-xr-x 1 tom tom  44K Oct  4 11:02 The 100 - S02E07 - Long Into an Abyss Bluray-1080p.en.srt
-rwxr-xr-x 1 tom tom 485M Oct  4 08:47 The 100 - S02E07 - Long Into an Abyss Bluray-1080p.mkv
ls -lha '/mnt/media/video/TV shows/The 100/Season 02'
$ ls -lha '/mnt/media/video/TV shows/The 100/Season 02'
total 7.7G
drwxr-xr-x 2 tom tom    0 Jan 18 13:15  .
drwxr-xr-x 2 tom tom    0 Nov  6 12:02  ..
-rwxr-xr-x 1 tom tom 497M Oct  4 08:43 'The 100 - S02E01 - The 48 Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 497M Oct  4 08:43 'The 100 - S02E02 - Inclement Weather Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 496M Oct  4 08:44 'The 100 - S02E03 - Reapercussions Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 497M Oct  4 08:45 'The 100 - S02E04 - Many Happy Returns Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 496M Oct  4 08:46 'The 100 - S02E05 - Human Trials Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom  42K Jan 18 09:28 'The 100 - S02E06 - Fog of War Bluray-1080p.en.srt'
-rwxr-xr-x 1 tom tom 485M Oct  4 08:46 'The 100 - S02E06 - Fog of War Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom  44K Oct  4 11:02 'The 100 - S02E07 - Long Into an Abyss Bluray-1080p.en.srt'
-rwxr-xr-x 1 tom tom 485M Oct  4 08:47 'The 100 - S02E07 - Long Into an Abyss Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom  38K Oct  4 11:02 'The 100 - S02E08 - Spacewalker Bluray-1080p.en.srt'
-rwxr-xr-x 1 tom tom 485M Oct  4 08:48 'The 100 - S02E08 - Spacewalker Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 491M Oct  4 08:48 'The 100 - S02E09 - Remember Me Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom  43K Oct  4 11:02 'The 100 - S02E10 - Survival of the Fittest Bluray-1080p.en.srt'
-rwxr-xr-x 1 tom tom 480M Oct  4 08:49 'The 100 - S02E10 - Survival of the Fittest Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 481M Oct  4 08:49 'The 100 - S02E11 - Coup de Gr'$'\303\242''ce Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 496M Oct  4 08:50 'The 100 - S02E12 - Rubicon Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 482M Oct  4 08:51 'The 100 - S02E13 - Resurrection Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 492M Oct  4 08:51 'The 100 - S02E14 - Bodyguard of Lies Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 494M Oct  4 08:52 'The 100 - S02E15 - Blood Must Have Blood, Part 1 Bluray-1080p.mkv'
-rwxr-xr-x 1 tom tom 492M Oct  4 08:52 'The 100 - S02E16 - Blood Must Have Blood, Part 2 Bluray-1080p.mkv'

As comparison, I just created a dummy series WandaVision. (7 seasons x 20 Ep)

I dropped in a dummy SRT file from a movie and renamed it.

It was picked up immediately & correctly.

drwxr-xr-x 9 chuck chuck 4096 Jan 18 10:27 ../
-rw-r--r-- 1 chuck chuck 3674 Jan 18 11:13 WandaVision - S01E01.eng.srt
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E01.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E02.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E03.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E04.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E05.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E06.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E07.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E08.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E09.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E10.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E11.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E12.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E13.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E14.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E15.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E16.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E17.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E18.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E19.mkv
-rw-r--r-- 1 chuck chuck  270 Jan 18 10:27 WandaVision - S01E20.mkv
[chuck@lizum Season 01.510]$ 

I understand , and agree, performing a PlexDance when a subtitle or other file is added isn’t the way to do things.

I will add one caution: When placing files in a monitored directory, there is a very limited time after the inotify event fires (file creation) until PMS starts scanning.

If the file is there, with the incorrect name, it will be fingerprinted incorrectly anyway because it has an extension PMS is sensitive to (SRT). PMS won’t look at that file again until all trace of it is removed from the DB (the Plex Dance).

Therefore, with the agent stacking now correct, I can only advise to name files correctly before moving into position so the scanner sees it correctly the first time.

I will add, based on what I’ve seen so far, the new TV scanner will fix a lot, if not all, of these edge cases

Between FileBot, Sonarr, etc, they all can make the naming correct before PMS sees the files. Might that be an option?

Then, what do you feel is wrong in this particular case, and what is the solution?
I mean, there’s no errors, nothing weird happening… I dropped a correctly named SRT next to the media file, and I get no subs… :sadpanda:

Knowing that manually adding the SRT via “upload” is a safe alternative, right ?