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')) {
|
if (!item.MediaSources || (item.MediaSources.length === 1 && item.MediaSources[0].Type === 'Placeholder')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!item.EnableMediaSourceDisplay) {
|
|
||||||
return false;
|
if (item.EnableMediaSourceDisplay != null) {
|
||||||
|
return !!item.EnableMediaSourceDisplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !item.SourceType || item.SourceType === 'Library';
|
return !item.SourceType || item.SourceType === 'Library';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue