allow transcode on waveform streamURL (#2060)

This commit is contained in:
jeffvli
2026-05-26 20:35:23 -07:00
parent 329d028edd
commit 1aa6b88cfa
2 changed files with 17 additions and 6 deletions
@@ -8,7 +8,7 @@ import { QueueSong } from '/@/shared/types/domain-types';
export function useSongUrl(
song: QueueSong | undefined,
current: boolean,
transcode: TranscodingConfig,
transcode: Partial<TranscodingConfig>,
): string | undefined {
const prior = useRef(['', '']);
const shouldReusePrior = Boolean(
@@ -24,7 +24,7 @@ export function useSongUrl(
bitrate: transcode.bitrate,
format: transcode.format,
id: song!.id,
transcode: transcode.enabled,
transcode: transcode.enabled ?? false,
},
}),
queryKey: [
@@ -63,7 +63,7 @@ export function useSongUrl(
export const getSongUrl = async (
song: QueueSong,
transcode: TranscodingConfig,
transcode: Partial<TranscodingConfig>,
skipAutoTranscode?: boolean,
) => {
const url = await api.controller.getStreamUrl({
@@ -73,7 +73,7 @@ export const getSongUrl = async (
format: transcode.format,
id: song.id,
skipAutoTranscode,
transcode: transcode.enabled,
transcode: transcode.enabled ?? false,
},
});