mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
d61fcea76c
commit
cbaac63619
4 changed files with 19 additions and 15 deletions
|
@ -6,7 +6,11 @@ define(['playbackManager', 'userSettings'], function (playbackManager, userSetti
|
|||
|
||||
function playThemeMedia(items, ownerId) {
|
||||
|
||||
if (items.length) {
|
||||
var currentThemeItems = items.filter(function (i) {
|
||||
return enabled(i.MediaType);
|
||||
});
|
||||
|
||||
if (currentThemeItems.length) {
|
||||
|
||||
// Stop if a theme song from another ownerId
|
||||
// Leave it alone if anything else (e.g user playing a movie)
|
||||
|
@ -14,14 +18,12 @@ define(['playbackManager', 'userSettings'], function (playbackManager, userSetti
|
|||
return;
|
||||
}
|
||||
|
||||
currentThemeIds = items.filter(function (i) {
|
||||
return enabled(i.MediaType);
|
||||
}).map(function (i) {
|
||||
currentThemeIds = currentThemeItems.map(function (i) {
|
||||
return i.Id;
|
||||
});
|
||||
|
||||
playbackManager.play({
|
||||
items: items,
|
||||
items: currentThemeItems,
|
||||
fullscreen: false,
|
||||
enableRemotePlayers: false
|
||||
}).then(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue