sortBy query param is being ignored in Shows/{seriesId/Episodes endpoint #6856

Closed
opened 2026-02-07 04:12:38 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @carlosjfcasero on GitHub (Mar 28, 2025).

Description of the bug

In endpoint /Shows/{seriesId}/Episodes query param "sortBy" is ignored. According to 2c499d1e86/Jellyfin.Api/Controllers/TvShowsController.cs it seems it's not being used

Reproduction steps

Call to mentioned API with sortBy query param
No matter what value you set there, response is always the same

What is the current bug behavior?

The controller ignores the query param

What is the expected correct behavior?

The controller reads the value of the query param and use it

Jellyfin Server version

10.10.0+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.10.6

Environment

Not needed

Jellyfin logs

NA

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @carlosjfcasero on GitHub (Mar 28, 2025). ### Description of the bug In endpoint /Shows/{seriesId}/Episodes query param "sortBy" is ignored. According to https://github.com/jellyfin/jellyfin/blob/2c499d1e86f1ea3ee087bc8f6ff101a1b1ec2ab3/Jellyfin.Api/Controllers/TvShowsController.cs it seems it's not being used ### Reproduction steps Call to mentioned API with sortBy query param No matter what value you set there, response is always the same ### What is the current _bug_ behavior? The controller ignores the query param ### What is the expected _correct_ behavior? The controller reads the value of the query param and use it ### Jellyfin Server version 10.10.0+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.10.6 ### Environment ```markdown Not needed ``` ### Jellyfin logs ```shell NA ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bug label 2026-02-07 04:12:38 +03:00
Author
Owner

@Pentaphon commented on GitHub (Mar 30, 2025):

I can confirm this.

@Pentaphon commented on GitHub (Mar 30, 2025): I can confirm this.
Author
Owner

@Shadowghost commented on GitHub (Mar 30, 2025):

As you can see in L296, only random is currently supported. To make this generic, we'd need to switch to InternalltemQuery for fetching the data

@Shadowghost commented on GitHub (Mar 30, 2025): As you can see in L296, only random is currently supported. To make this generic, we'd need to switch to `InternalltemQuery` for fetching the data
Author
Owner

@carlosjfcasero commented on GitHub (Apr 16, 2025):

As far as I can see in the API documentation, a lot of options are supposed to be supported

@carlosjfcasero commented on GitHub (Apr 16, 2025): As far as I can see in the [API documentation](https://api.jellyfin.org/#tag/TvShows/operation/GetEpisodes), a lot of options are supposed to be supported
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#6856