Skip to content

Search lists in-library titles again under Available to request (Android phone, tablet, TV) #405

Description

@zZebrahz

Problem

Searching for a title that is already in the library shows it twice: once in the library results, and again under Available to request. The maintainer saw this on an Android phone and on Android TV. It only offers something the user already has, so it adds noise to search.

Source evidence

Reviewed at c38fb93c.

  • The server already marks these results. RequestMediaResult (shared) carries availability (missing or available) and library_content_id.
  • Phone and tablet: RequestSearchSection.kt filters state.results only by the selected media type (allowsRequestResult), so results marked available stay in the row. Tapping one opens the library item through library_content_id, so the card works, but it duplicates the library result above it.
  • TV: TvSearchScreen.kt uses requestState.results.filterTvRequestResults(), and filterTvRequestResults() in TvRequestPresentation.kt also filters only by media type.

Expected behavior

Available to request lists only titles the user can request. Results the server marks availability: "available" (or that have a library_content_id) are left out, and the section hides when nothing is left. The library results already show those titles.

Validation

Reported by the maintainer on an Android phone and Android TV, against server build 941 · 82b5b39e. The exact app build wasn't recorded; local main had been updated to c38fb93c just before. The tablet uses the same phone search screen and was not checked separately. Found while retesting search for #317 and #318 (C3). Non-blocking.

AI-assisted: drafted with Claude Code (claude-opus-5-5) and GitHub CLI at the maintainer's direction. The maintainer observed the behavior on devices; the source evidence comes from review of c38fb93c.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions