Force transcoding - disable stream copy for downloads
Some checks failed
Push & Release 🌍 / Automation 🎛️ (push) Has been cancelled
Push & Release 🌍 / Unstable release 🚀⚠️ (push) Has been cancelled
Push & Release 🌍 / Quality checks 👌🧪 (push) Has been cancelled
Push & Release 🌍 / GitHub CodeQL 🔬 (push) Has been cancelled
Push & Release 🌍 / Deploy 🚀 (push) Has been cancelled

- User can explicitly select 'Copy Original' if they want to copy
- Otherwise always transcode with specified parameters
- Ensures bitrate and resolution settings are respected
This commit is contained in:
mani
2026-01-08 01:39:41 +01:00
parent 3ba80cb848
commit eaf0768a65

View File

@@ -392,6 +392,12 @@ function buildDownloadUrl(apiClient, item, options) {
audioStreamIndex: options.audioStreamIndex
});
// Force transcoding - disable stream copy
// User can select "Copy Original" if they want to copy instead
params.set('enableAutoStreamCopy', 'false');
params.set('allowVideoStreamCopy', 'false');
params.set('allowAudioStreamCopy', 'false');
// Add resolution if not original
if (options.maxWidth && options.maxWidth !== 'original') {
params.set('maxWidth', options.maxWidth);