fix four audit bugs - offline playback, audio passthrough, notification dedup, dashboard fixes

This commit is contained in:
2026-04-06 04:33:21 +03:00
parent 0af7ba64cb
commit 1a84b348ad
5 changed files with 19 additions and 40 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ import { jellyfinClient, getItemsApi, getTvShowsApi, getUserViewsApi, getSearchA
import { getLiveTvApi } from '@jellyfin/sdk/lib/utils/api/live-tv-api'
import { debugLog } from '../lib/log'
import { browserDeviceProfile } from '../lib/device-profile'
import { usePreferencesStore } from '../stores/preferences-store'
function useApi() {
return jellyfinClient.getApi()
@@ -621,6 +622,7 @@ export function usePlaybackInfo(
maxStreamingBitrate?: number,
) {
const api = useApi()
const audioPassthrough = usePreferencesStore(s => s.audioPassthrough)
return useQuery({
queryKey: [
'jellyfin',
@@ -644,7 +646,7 @@ export function usePlaybackInfo(
// picks the default; when set, the returned TranscodingUrl muxes
// that audio track into the stream.
AudioStreamIndex: audioStreamIndex,
DeviceProfile: browserDeviceProfile() as any,
DeviceProfile: browserDeviceProfile(audioPassthrough) as any,
AutoOpenLiveStream: true,
EnableDirectPlay: true,
EnableDirectStream: true,