mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Code cleanup
Restoring "Play All" functionality
This commit is contained in:
parent
af61ae047c
commit
ef8d92309b
2 changed files with 10 additions and 2 deletions
|
@ -205,13 +205,16 @@ function executeAction(card, target, action) {
|
|||
});
|
||||
} else if (action === 'play' || action === 'resume') {
|
||||
const startPositionTicks = parseInt(card.getAttribute('data-positionticks') || '0', 10);
|
||||
|
||||
const sortValues = userSettings.getSortValuesLegacy(sortParentId, 'SortName');
|
||||
if (playbackManager.canPlay(item)) {
|
||||
playbackManager.play({
|
||||
ids: [playableItemId],
|
||||
startPositionTicks: startPositionTicks,
|
||||
serverId: serverId,
|
||||
queryOptions: userSettings.getSortValuesLegacy(sortParentId, 'SortName')
|
||||
queryOptions: {
|
||||
SortBy: sortValues.sortBy,
|
||||
SortOrder: sortValues.sortOrder
|
||||
}
|
||||
});
|
||||
} else {
|
||||
console.warn('Unable to play item', item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue