mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
re-org scripts
This commit is contained in:
parent
9fecb9f7c4
commit
d2f14592e9
6 changed files with 5 additions and 10 deletions
|
@ -210,16 +210,16 @@
|
|||
|
||||
self.canPlay = function (item) {
|
||||
|
||||
return self.canPlayByAttributes(item.Type, item.MediaType, item.PlayAccess, item.LocationType, item.IsPlaceHolder);
|
||||
return self.canPlayByAttributes(item.Type, item.MediaType, item.PlayAccess, item.LocationType);
|
||||
};
|
||||
|
||||
self.canPlayByAttributes = function (itemType, mediaType, playAccess, locationType, isPlaceHolder) {
|
||||
self.canPlayByAttributes = function (itemType, mediaType, playAccess, locationType) {
|
||||
|
||||
if (playAccess != 'Full') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (locationType == "Virtual" || isPlaceHolder) {
|
||||
if (locationType == "Virtual") {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue