Skip to content
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

Don't shuffle some types by default #1923

Merged
merged 3 commits into from
Dec 10, 2019
Merged

Conversation

Bond-009
Copy link
Member

Image collections and some other types shuffled the items before returning them for no real reason.
This PR also adds a Shuffle extension for List which should be way faster than using .OrderBy(i => Guid.NewGuid())(.ToList())

Copy link
Contributor

@JustAMan JustAMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain your criteria of removing vs not removing shuffling on certain queries?

Emby.Dlna/ContentDirectory/ControlHandler.cs Show resolved Hide resolved
@Bond-009
Copy link
Member Author

Bond-009 commented Dec 6, 2019

@JustAMan I only left the ones where it explicitly states that the result is shuffled. I didn't see the need to shuffle a random item request or the recent directors.

@dkanada dkanada merged commit dee3076 into jellyfin:master Dec 10, 2019
@Bond-009 Bond-009 deleted the random branch December 10, 2019 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants