mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-20 02:54:17 +01:00
fix(downloads): preserve audio track selection for offline playback
This commit is contained in:
@@ -58,6 +58,8 @@ export function useDownloadOperations({
|
||||
item: BaseItemDto,
|
||||
mediaSource: MediaSourceInfo,
|
||||
maxBitrate: Bitrate,
|
||||
audioStreamIndex?: number,
|
||||
subtitleStreamIndex?: number,
|
||||
) => {
|
||||
if (!api || !item.Id || !authHeader) {
|
||||
console.warn("startBackgroundDownload ~ Missing required params");
|
||||
@@ -114,6 +116,8 @@ export function useDownloadOperations({
|
||||
trickPlayData: additionalAssets.trickPlayData,
|
||||
introSegments: additionalAssets.introSegments,
|
||||
creditSegments: additionalAssets.creditSegments,
|
||||
audioStreamIndex,
|
||||
subtitleStreamIndex,
|
||||
};
|
||||
|
||||
// Add to processes
|
||||
|
||||
Reference in New Issue
Block a user