fix(plex): copy mkv attachments during transcode

close #1083
This commit is contained in:
edde746
2026-05-21 08:08:25 +02:00
parent b547f8a47f
commit d8f69f7acd
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -2945,6 +2945,10 @@ class PlexClient
'&protocol=http&container=mkv&videoCodec=h264%2Chevc%2C*'
'&audioCodec=opus%2Cvorbis%2Cflac%2C*&subtitleCodec=ass%2Cpgs%2Cvobsub%2C*)',
);
profileExtraClauses.add(
'add-transcode-target-settings(type=videoProfile&context=streaming'
'&protocol=http&CopyMatroskaAttachments=true)',
);
final clientProfileExtra = profileExtraClauses.join('+');
// HTTP/MKV matches Plex Desktop and lets MPV see embedded subtitle streams.
@@ -186,6 +186,13 @@ void main() {
'&audioCodec=opus%2Cvorbis%2Cflac%2C*&subtitleCodec=ass%2Cpgs%2Cvobsub%2C*)',
),
);
expect(
params['X-Plex-Client-Profile-Extra'],
contains(
'add-transcode-target-settings(type=videoProfile&context=streaming'
'&protocol=http&CopyMatroskaAttachments=true)',
),
);
expect(params['X-Plex-Client-Profile-Extra'], isNot(contains('protocol=hls')));
expect(params['X-Plex-Client-Profile-Extra'], isNot(contains('type=subtitleProfile')));
});