This commit is contained in:
Fredrik Burmester
2024-10-19 21:20:11 +02:00
parent f5b05bf32d
commit d9fde3ba79
9 changed files with 211 additions and 157 deletions

View File

@@ -42,7 +42,11 @@ const useDefaultPlaySettings = (
defaultMediaSource: mediaSource || undefined,
defaultBitrate: bitrate || undefined,
};
}, [item, settings]);
}, [
item.MediaSources,
settings?.defaultAudioLanguage,
settings?.defaultSubtitleLanguage,
]);
return playSettings;
};

View File

@@ -54,7 +54,6 @@ export const useImageColors = ({
// If colors are cached, use them and exit
if (_primary && _text) {
console.info("useImageColors ~ Using cached colors for performance.");
setPrimaryColor({
primary: _primary,
text: _text,