1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Removed unneeded calls to getSortValues on playbackManager calls that only play 1 item

This commit is contained in:
MrK 2023-09-20 22:50:01 +01:00
parent ee791f9d0d
commit 4488a586a4
2 changed files with 2 additions and 30 deletions

View file

@ -722,13 +722,11 @@ class ItemsView {
function play() {
const currentItem = self.currentItem;
const values = self.getSortValues();
if (currentItem && !self.hasFilters) {
playbackManager.play({
items: [currentItem],
autoplay: true,
queryOptions: values
autoplay: true
});
} else {
getItems(self, self.params, currentItem, null, 0, 300).then(function (result) {