-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make movie's shuffle button use the current filters #6111
Conversation
Could you also rebase your branch onto recent |
a419aa9
to
f52ac7a
Compare
Co-authored-by: Dmitry Lyzo <[email protected]>
Done. Let me know if you need the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it a bit more.
Previously, it randomly played the entire Movie library (not just one random movie).
Shuffle button on the list page seems to be implemented this way:
jellyfin-web/src/controllers/list.js
Lines 775 to 788 in 97d4f94
function shuffle() { | |
const currentItem = self.currentItem; | |
if (currentItem && !self.hasFilters) { | |
playbackManager.shuffle(currentItem); | |
} else { | |
getItems(self, self.params, currentItem, 'Random', 0, 300).then(function (result) { | |
playbackManager.play({ | |
items: result.Items, | |
autoplay: true | |
}); | |
}); | |
} | |
} |
Co-authored-by: Dmitry Lyzo <[email protected]>
Quality Gate passedIssues Measures |
@dmitrylyzo I merged your latest suggested changes. Do we still need the |
Cloudflare Pages deployment
|
Yes, because |
Changes
Updates the random movies button so it chooses a random movie from the filtered list, instead of choosing a random movie from all movies.
Note: I do think this was the original intent of the movie's Shuffle button, as the button is removed from the UI when the applied filters return 0 movies.
Issues
Fixes #3732