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

Fix pagination for DLNA root folder list #2304

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Fix pagination for DLNA root folder list #2304

merged 1 commit into from
Jan 20, 2020

Conversation

pR0Ps
Copy link
Contributor

@pR0Ps pR0Ps commented Jan 19, 2020

Previously, when responding to a DLNA "Browse" request, the StartingIndex was not respected and all of the root items were returned each time. This caused infinite loops with in DLNA clients that ignored the TotalMatches data in the response and just continued asking for the next page until they got an empty response.

This fix makes the root folder list respect the StartingIndex and RequestedCount parameters like all other responses.

Fixes issue #2303

Previously, when responding to a DLNA "Browse" request, the
`StartingIndex` was not respected and all of the root items were
returned each time. This caused infinite loops with in DLNA clients that
ignored the `TotalMatches` data in the response and just continued
asking for the next page until they got an empty response.

This fix makes the root folder list respect the `StartingIndex` and
`RequestedCount` parameters like all other responses.

Fixes issue #2303
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.

LGTM assuming tested

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