Plex displaying old MKV title tag despite clearing bundles and cache

Server Version#: Version 1.21.1.3876
Player Version#: Version 4.50.1

Hi,

I was setting the MKV title tag by accident when ripping some blurays. I realised my mistake and removed the title tags, but it is still showing in PMS as the episode title for some files, even after doing the full Plex Dance with the files (move files out, Clean Database & Bundles, move files back). I have also deleted the contents of the Caches directory on the server, but the old titles still remain. When I delete the title manually and Refresh the show or season, the episode title is replaced with the Originally Available date, and not the episode title from the tvdb…

Where is this data still coming from? The show is being matched correctly, so I don’t know why the titles are not populating with the correct data. Any ideas?

Thanks!

AFAIK(unless this is a new feature I’m not aware of), Plex does not scan/use title tags from MKV files… Though I seen people stating otherwise. I have never seen it myself.

But… If you have indeed removed the TITLE tags then you will have to refresh metadata for the correct info to populate.

TV shows can can a little more tricky cause it could cause Plex not to recognize whole series and/or episodes and could also cause plex to detect(identify) then as another series or the episodes part of another series entirely.

That’s a bit troublesome. The Plex Dance should have worked. This makes me think the TITLE tags are still there or you forgot a step in the dance… Remember, you still got to empty the trash. If not then the items will be ā€œrecycled/unavailableā€ state until one of the following conditions are meet.

  1. Trash is empty.
  2. Plex finds the media again.
    If it’s item#2 then Plex will just reuse the previous stored information and remove it out of ā€œrecycledā€ state and flag as available.
1 Like

Thanks for your reply. I did the Dance a couple of times, even in different orders to see if that would make a difference, but the problem is still there.

Do you think it could it be related to having the file originally as an mp4 and replacing it with an mkv? I originally was ripping to mp4 until I found out how useful forced subtitle flags are on mkv containers…

Are you sure Plex only sees just the one file? Do you see a 2 in the upper left corner of the poster? Check the XML to be sure there is only file plex is detecting. How to get info.
https://support.plex.tv/articles/201998867-investigate-media-information-and-formats/#toc-1

There’s definitely only a single file for each episode, and the Info screen shows nothing strange, looks the same as all the other files that are working fine.

I turned on the Console view for when I last imported the file, and I see these errors:

Jan 26, 2021 09:15:15.585 [0x7f4a09882700] Error — Unknown metadata type: folder
Jan 26, 2021 09:15:16.450 [0x7f4a09b70700] Error — Unknown metadata type: folder
Jan 26, 2021 09:15:16.839 [0x7f49bd11f700] Warning — Unable to load episode file [ā€œseasons/4/episodes/1.xmlā€]
Jan 26, 2021 09:15:18.246 [0x7f4a09882700] Error — Unknown metadata type: folder
Jan 26, 2021 09:15:18.281 [0x7f49e0e31700] Warning — MDE: unable to find a working transcode profile for video stream
Jan 26, 2021 09:15:18.281 [0x7f49e0e31700] Warning — MDE: unable to find a working transcode profile for video stream
Jan 26, 2021 09:16:18.904 [0x7f49be2b3700] Error — Trying to set unknown field 91.

Can you post the XML info for one of the episodes?

Sure, here you go:
61277.xml.txt (3.9 KB)
You can see in there that it’s still got the title tag I had created in an earlier rip which I since fixed in a new file, but the value persists and doesn’t get replaced by the episode title from the TVDB…

Did you edit the summary to the episode to display Hidden to prevent spoilers.?
And also LOCK the summary field?

Oh, yes - I wrote a python script that pings the server for new files and hides the summary for them.

I did turn it off to test if it was causing the problem and it made no difference.

I really don’t know. Maybe a permission problem… At this point I would PlexDance the entire series and not just individual episodes.

Ok will keep trying and see what else I can find. Thanks for the help!

Install MediaInfo, right click on the title > Media info.

Share what you see

Here you go:

General
Unique ID : 203895393821335703374588707375534073448 (0x9964D30F0B714805B109B39E07D46668)
Complete name : /Volumes/TV/Black Mirror (2011)/Season 04/Black Mirror - S04E01 - USS Callister.mkv
Format : Matroska
Format version : Version 4
File size : 950 MiB
Duration : 1 h 16 min
Overall bit rate : 1 734 kb/s
Encoded date : UTC 2020-12-29 14:03:29
Writing application : mkvmerge v51.0.0 (ā€˜I Wish’) 64bit
Writing library : libebml v1.4.0 + libmatroska v1.6.0

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 16 min
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Default : Yes
Forced : No

Audio
ID : 7
Format : AAC LC SBR
Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name : HE-AAC
Format settings : Explicit
Codec ID : A_AAC-2
Duration : 1 h 16 min
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 23.438 FPS (2048 SPF)
Compression mode : Lossy
Delay relative to video : 31 ms
Default : Yes
Forced : No

Text #1
ID : 2
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : Yes
Forced : No

Text #2
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : Brazilian
Language : Portuguese
Default : No
Forced : No

Text #3
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Dutch
Default : No
Forced : No

Text #4
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : French
Default : No
Forced : No

Text #5
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : German
Default : No
Forced : No

Menu
00:00:00.097 : en:00:00:00.097

Ok, you said you’ve already removed it from the library and added it again. So click on the ellipsis next to the library name > manage library > empty trash. Then refresh metadata for that title.
Any change?

Ok I finally got it to refresh properly!

It did not work doing the Dance for a single episode, or removing the whole season, but when I unmatched the show manually, completely removed the directory, did the Dance and added it in again, it took a few minutes to match the show as opposed to a couple of seconds. I’m sure I’ve tried that before, but maybe I forgot the empty the trash or something when I did it for the whole show previously.

So there is a bug/feature with what episode data remains cached when you have other episodes/seasons of the same show that are still in the database.

I’m also wondering if the Refresh function is working correctly at an episode or season level. If I manually edit an episode summary, but do not lock the field, performing a Refresh Metadata on that single episode should reset the summary to default, right? This is not working for me, the refresh is only working at a show level.

Thanks!

1 Like

Sure. Make sure to enable ā€œempty trash after scanā€ (something like that) in the settings

Yup that setting has been enabled the whole time… this installation has been running since 2016 so I’m wondering if there’s some corruption somewhere.

There’s a new Tv Show scanner available in beta, but at this moment it only works for new libraries, meaning you would have to give up on your watch history in order to use it. Soon we must be able to upgrade the existent libraries to the new scanner.

I can confirm that Plex will get title tags from streams in MKV files, but it isn’t super-duper common to find titles on streams (vs. the container) in MKV files.

Local Media Assets and MKV Metadata - #36 by OttoKerner

What exact steps are you taking for the Plex Dance? There are some instructions out there with things in the wrong order - and it won’t work if things are done in the wrong order.

The canonical order:

Plex incorrectly identifying TV episodes - #4 by OttoKerner

Which movie agent are you using? The new Plex Movie agent? I haven’t needed to Plex Dance anything with it. A scan/refresh has consistently been enough.

Edit - I see in your shared .xml that it’s not the new agent.

1 Like

Thanks for the info, I can confirm that it was taking the title from the video stream.

Do the ā€œrun partial scanā€ and ā€œempty trash after scanā€ settings affect the Plex Dance at all? I have had them both enabled.

When there is an upgrade to the new scanner I’d be keen to try it. In the meantime I will keep investigating why the refresh doesn’t seem to be working on individual episodes for me. I can raise a new issue for that if it’s more appropriate?