Plex not importing srt subtitles after indexing library with "\\?\ extended length path prefix"

Server Version#: 1.21.0.3711
Player Version#: Plex Media Player 4.29.2

Since Plex does not comply to Windows’ longPathAware to allow paths exceeding 260 characters (this should be in Plex’s application manifest), I had to resort to prefacing my libraries folders with \\?\ in order to get long paths such as "D:\Videos\Séries\Parks and Recreation (2009)\Season 07\Parks and Recreation - S07E10 - The Johnny Karate Super Awesome Musical Explosion Show\Parks and Recreation - S07E10 - The Johnny Karate Super Awesome Musical Explosion Show [WEBDL-720P][AC3 5.1][H264].mkv"to be recognized, per this advice.

The path to my corresponding library folder is \\?\D:\Videos\Séries

The problem is that now, no srt subtitles are being imported, I have to manually add them to each episode. I already have checked and Local Media Assets is enabled for every agent. This issue popped up as soon as I made this change in my libraries.

Any help is much appreciated, thanks

You are NOT following the naming std

You can’t have sub directories below the season directory

Ref: https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/

So in your case, make:

"D:\Videos\Séries\Parks and Recreation (2009)\Season 07\Parks and Recreation - S07E10 - The Johnny Karate Super Awesome Musical Explosion Show\Parks and Recreation - S07E10 - The Johnny Karate Super Awesome Musical Explosion Show [WEBDL-720P][AC3 5.1][H264].mkv"

into:

"D:\Videos\Séries\Parks and Recreation (2009)\Season 07\Parks and Recreation - S07E10 - The Johnny Karate Super Awesome Musical Explosion Show [WEBDL-720P][AC3 5.1][H264].mkv"

Also, and in above, I assume your TV Lib root path is set towards:
D:\Videos\Séries

And when said, I STRONGLY recommend not using extended characters, so personally, I would rename D:\Videos\Séries into D:\Videos\Series

2 Likes

This naming convention was working perfectly fine before I introduced the \\?\ prefix, so I hardly believe this is the problem. Also, using a single folder for the whole season looks like a mess when you need to have srt files for every single episode.

I should add that this issue also happens for D:\Videos\Filmes, so extended characters also are not the problem.

Well, what can I say besides Use the std. Luke

Replace std. with The Force as your fit

First of all, when not following the Std, then what used to work might stop working, as such, use the std!

And when said, make sure PMS debug level is set to debug and that only.
Then do the Plex Dance on the episode, regardless of it was in Plex or not, followed by adding it back again

Then upload a zip of the PMS Log files

Edit: And loose the Tone !

Now that’s helpful, thank you

(File removed)

You should also know that before posting this, I also tried recreating my library from scratch by renaming %localappdata\Plex Media Server to something else and starting a new one. Same issue.

Don’t push it, and last warning !

According to the logs:

Dec 09, 2020 18:43:23.854 [14776] DEBUG - Refreshing section 1 of type: 2
Dec 09, 2020 18:43:23.891 [14776] DEBUG - The show 'Parks and Recreation' has leaves which have never been refreshed, we'll refresh.
Dec 09, 2020 18:43:23.901 [16280] DEBUG - Refreshing 1 IDs.
Dec 09, 2020 18:43:23.902 [16280] DEBUG - Refreshing metadata for 'Parks and Recreation' (agent: com.plexapp.agents.thetvdb)
Dec 09, 2020 18:43:23.902 [15240] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=1&metadataItemID=2513&metadataType=2&state=3&metadataState=queued

But nothing further, so you might have been too fast here?

Okay, did the whole thing again while giving it more time to run:

(File removed)

Bad file path

Dec 09, 2020 19:39:50.179 [5264] INFO - Library section 1 (Séries de TV) will be updated because of a change in '"\\?\D:\Videos\Séries\Parks and Recreation (2009)\Season 07"/Parks and Recreation - S07E10 - The Johnny Karate Super Awesome Musical Explosion Show [WEBDL-720P][AC3 5.1][H264].pt-BR.srt'

Notice the " after Season 07

Also, you still have extended characters in the Seriesfolder name, and lastly there’s no indication in the logs that you did a Plex Dance

The Plex Dance may have disappeared from the logs because I purged everything before gathering the new ones.

But perhaps I should use another file. I have this issue with every single entry in my library, but some are “easier to debug” than others.

For the following logs, I renamed %localappdata%\Plex Media Server to something else and started a brand new one. I added the movie folder \\?\D:\Videos\Filmes (which follows the UNC path guidelines) and waited until the every library task was done.

Subtitles were not picked up for any file, but for a sample, I shall provide

"D:\Videos\Filmes\The Godfather (1972)\The Godfather (1972) - [BLURAY-1080P][AAC 5.1][X264].mp4"
and
"D:\Videos\Filmes\The Godfather (1972)\The Godfather (1972) - [BLURAY-1080P][AAC 5.1][X264].pt-BR.srt"

Here are the corresponding logs:
(File removed)

AFAIK, that’s not a supported language code

Make it pt only, and try again

Ref: https://support.plex.tv/articles/200471133-adding-local-subtitles-to-your-media/

It is a supported language code, Plex loads it as Português (SRT external)

But just to be on the safe side, I remove the language code for 3 different files and the issue persisted, except now the files were loaded as Unknown (SRT External). Plex seems to recognize there is a subtitle file, but doesn’t load its contents.

I did the whole “new Plex Media Server folder” thing again and used
"D:\Videos\Filmes\The Godfather (1972)\The Godfather (1972) - [BLURAY-1080P][AAC 5.1][X264].mp4"
and
"D:\Videos\Filmes\The Godfather (1972)\The Godfather (1972) - [BLURAY-1080P][AAC 5.1][X264].srt"
but got the same results.

Here are the logs:
(File removed)

2020-12-12 14:59:35,392 (2854) :  INFO (logkit:16) - Found subtitle file: \\?\D:\Videos\Filmes\The Godfather (1972)\The Godfather (1972) - [BLURAY-1080P][AAC 5.1][X264].pt-BR.srt language: pt codec: srt format: srt default:  forced: 

The pt-br was found according to the log!

And the version without an language definition was also found, and since without a definition, will show as unknown

2020-12-12 17:40:44,338 (940) : INFO (logkit:16) - Found subtitle file: \\?\D:\Videos\Filmes\The Godfather (1972)\The Godfather (1972) - [BLURAY-1080P][AAC 5.1][X264].srt language: xx codec: srt format: srt default: forced:

So try and name the sub with a pure Portugal identifier, without -br and see if it doesn’t show as Portuguise

What’s the point of trying .pt.srt?

Both .srt and .pt-BR.srt were found, I can see the files selected when I play the media, but the contents are not being loaded. I would already have removed the language code from every file if this made them work, but it doesn’t.

Huh…

So not imported, as in the title of this thread, or shown in a player when trying to play them, since that’s different things, and I was looking for PMS not importing them in, and saw they where

And if not shown in a player, I need more details, like which player, as well as logs for when trying to play, with player logs as well

And a sample of one of the subs could also help, since it has to be in UTF-8 encoding

Perhaps a better title would be “not being imported correctly”, as importing them manually (via “Upload”) fixes the issue.

Every srt file is UTF-8 encoded, this is ensured by my Bazarr setup, which automatically converts whenever it downloads a non-UTF-8 file.

My player is Plex Media Player 4.29.2, but this also happens in the web player (whenever I get it to work before the transcoder crashes, the reason I use PMP in the first place is because all my files are local and I don’t like transcoding).

Here are the PMP logs:
(File removed)

Sadly no idea what to look for, since I never used PMP

Also haven’t tried Plex for Windows but suggest you give it a try

And lastly, did you verify, that it really is UTF-8, by openong in like Notepad ++ ?

Plex for Windows is less powerful and also relies on transcoding, I can’t even get it to work.

And yes, I did check the files in Notepad++, they are indeed UTF-8. Also, whenever I use “Upload” to manually import a subtitle file, it’s always the exact same file that wasn’t correctly imported automatically.

Hmm…

Then I sadly have no more clues, but keep watching this thread

I run a number of Windows PMS servers…
I don’t have much problem with them, I also don’t have to use the extended path.

What version of Windows are you using? I looked through the post and didn’t find it listed.

All my movies and TV series use external (.srt) subtitles
image
image

This folder structure just works

Note that the srt file has to have the same exact name as the movie with the added 2 or 3 character language code, I use the 3 (eng)…

see the support docs for additional information.

One thing to note is just because you got something to work yesterday it may not work tomorrow. The developers may change code that breaks what you had working, The developers should follow the docs also to keep everyone on the same page.