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

[Issue]: Shuffle option for a TV Show season always returns episodes in order #11494

Closed
1 task done
adamantike opened this issue May 5, 2024 · 3 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@adamantike
Copy link

Please describe your bug

Using the "Shuffle" option within a TV Show season returns the Season episodes in order (Random ordering is not being applied, even when the API receives it).

Using the Web interface, this is how the API request looks like when using the "Shuffle" option for a TV show (working as expected):

GET https://{host}/Users/{user_id}/Items?ParentId={show_id}&Filters=IsNotFolder&Recursive=true&SortBy=Random&MediaTypes=Audio,Video&Limit=300&Fields=Chapters&ExcludeLocationTypes=Virtual&EnableTotalRecordCount=false&CollapseBoxSetItems=false

The API request for the "Shuffle" over a single TV Show season is similar, only changing the ParentId. This call always returns items in order:

GET https:/{host}/Users/{user_id}/Items?ParentId={season_id}&Filters=IsNotFolder&Recursive=true&SortBy=Random&MediaTypes=Audio,Video&Limit=300&Fields=Chapters&ExcludeLocationTypes=Virtual&EnableTotalRecordCount=false&CollapseBoxSetItems=false

Reproduction Steps

  1. Open Jellyfin using the Web or Desktop client.
  2. Go to any TV show with multiple seasons.
  3. Go to any of the seasons, and use the "Shuffle" option.

Expected: A random episode from the selected season starts playing.
Actual: The first episode from the selected season starts playing.

Jellyfin Version

10.8.13

if other:

No response

Environment

- Virtualization: Docker
- Clients: Browser

Jellyfin logs

No relevant logs.

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@adamantike adamantike added the bug Something isn't working label May 5, 2024
@jellyfin-bot
Copy link
Contributor

Hi, it seems like your issue report has the following item(s) that need to be addressed:

  • The format of the environment section has been altered from the template.

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

@Bond-009
Copy link
Member

Can't reproduce on 10.9.2

@jellyfin-bot jellyfin-bot added this to Needs triage in Issue Triage for Main Repo May 19, 2024
@adamantike
Copy link
Author

I can confirm this no longer happens. Endpoint is now /Episodes instead of /Items, so it seems the big 10.9 changelog fixed it!

Issue Triage for Main Repo automation moved this from Needs triage to Closed/Done May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants