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:
parent
8f694d7d1c
commit
2ada649960
1 changed files with 3 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue