1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix EnableMediaSourceDisplay logic

This commit is contained in:
Bill Thornton 2022-10-11 01:17:21 -04:00
parent 8f694d7d1c
commit 2ada649960

View file

@ -284,8 +284,9 @@ export function supportsMediaSourceSelection (item) {
if (!item.MediaSources || (item.MediaSources.length === 1 && item.MediaSources[0].Type === 'Placeholder')) {
return false;
}
if (!item.EnableMediaSourceDisplay) {
return false;
if (item.EnableMediaSourceDisplay != null) {
return !!item.EnableMediaSourceDisplay;
}
return !item.SourceType || item.SourceType === 'Library';