Show Subtitle/Audio Names and Media Version Info for Plex

Try adding the contents of the “inject” file to the index.html instead. Make sure you revert the changes you made to the other file.
Add the CONTENTS of the file between script tags like this:

<script src="js/chunk-2-e785a034793b135f3886-plex-3.104.2-1b12c68.js"></script>
<script>
CONTENTS
</script>
</body>
</html>

There is a chance that the file just doesn’t have track names that Plex can see. Use a tool like mkvmerge to create files if that is the case.

Tried that…still nothing. Restored my chunk 1 & 2.js files to original, then loaded the inject script for titles as shown in your post into the index.html file.

Not sure if it matters–doesn’t seem to after examining your code–that my js folder is directly under web-client vice web-client/desktop. Also, I have no “tv” folder either.

So, I’m at a loss. May play with it tomorrow–have plenty of time in my isolated quarantine!!

Thanks for your help, probably some error in my following your directions above, so will go step by step again.

Finally, the audio track names work in VLC and I also converted the original mov file into mp4 as well. Again, VLC read the names without problems.

Try looking at the directions for “Plex Desktop”. The automatic tool was made for Plex Media Player.

Tried the desktop method–no luck. Retried the index.html method–no luck. Retried all the other methods–again, no luck. When I pull up a file (both .mov and .mp4) that have multiple renamed audio tracks, I still get the “English (ACC…)” label for each track. Again, in VLC, the tracks show up as changed labels, not the “English (ACC…)”

So I guess I’ll have to wait an eternity for PLEX software engineers to incorporate some of your ideas into their updates!

Thanks again for the help, sorry it didn’t work out. If you have any more suggestions, I’m all ears.

Regards,
Ed G

You could try the userscript version in the web client. Also if the titles for the file don’t show in the “Get Info” feature then it won’t show in the tweak script.

i rly dont understand how to install it :confused: is there someone to help me step by step pls ?

What are you stuck on? What client (Web, Plex Media Player, or “Plex”) are you installing on? I posted steps but maybe some clarification is needed.

Hi, on Plex Web Subtitle selection causes an error. No subtitles play normally.

That looks like the generic Plex playback error. I just tested the script on Chrome and Firefox and I do not have any issues. What browser are you using and do any obvious errors appear in the F12 web console when you hit play?

Unfortunately, errors with this script are very difficult to troubleshoot due to the Plex app being minified. (It is mostly a matter of trial and error.)

It’s Chrome v. 81.0.4044.129, win10 pro x64.
Same error on Opera v. 68.0.3618.55. Even on other machine.
Plex Server v. 1.19.2.2737 on win 10,. Tried to change the language, restarting all, disabling hardware-accelerated video encoding, nothing work. Without script or without subs all work well.

image

It is now updated and fixed. The problem was that SRT subtitles could not stream because the web client was trying to read the text response before the request was finished.

Thanks a lot, everything works!

thats worked. thank you!

Problem… Plex for windows installed today. JS folder Chunk 0 1 3 4 and runtime 2… No Chunk 2. And how do append JS lines on the chunk? simple copy paste at the end of the file?

The bundles must have changed. You have two options:

Option 1: Check the index.html for which bundle is loaded and append to that one. Just open the file in notepad and add the lines to the end.

Option 2: Add the code to index.html directly, inside of <script><script/> tags. You need to do that before the <body/> tag.

Is the second point meant to copy the contents of the .JS for desktop between the ?
I tried this:

<body>
<div id="plex" class="application"></div>
<script src="qrc://:/qtwebchannel/qwebchannel.js"></script>
<script src="js/runtime-2-hash-plex-4.33.0-e107b91.js"></script>
<script src="js/chunk-3-hash-plex-4.33.0-e107b91.js"></script>
<script src="js/chunk-1-hash-plex-4.33.0-e107b91.js"></script>
<script src="js/inject-titles-and-filenames-for-plex.js"></script>
</body>

and it works. Maybe I got it wrong (I’m not good at all in English)

Adding the file separately like that also works.

I’m glad I could help :slight_smile:

1 Like

but its not working with last update. do i have to apply the process again after each new versions ? is it working on your side with last updated ?

You have to apply the change for Plex Media Player and Plex Desktop each time the app updates. If the procedure does not work, please try the alternate one I posted earlier in this thread where you edit index.html.

1 Like