sct / overseerr

Request management and media discovery tool for the Plex ecosystem
https://overseerr.dev
MIT License
3.71k stars 435 forks source link

TMDB recommendations have duplicates #3499

Open marcofaggian opened 1 year ago

marcofaggian commented 1 year ago

Description

The last element of the first movie recommendations' page is the same of the next pagination. Root cause is the TMDB API's response.

There are two ways to solve this:

  1. return a page of 19 from the backend (there's no way to check with previous page, without caching or network calls),
  2. (if found to be the same) skip the first element of the next page whilst stitching together the pages in the frontend.

Both have pros and cons, I'd implement a PR for the second one.

Version

1.4.1

Steps to Reproduce

Fetch the recommendations API for a TMDB movie, look at the last recommendation of the first page. It's identical to the first recommendation of the second page.

Screenshots

immagine

Logs

No response

Platform

desktop

Device

any

Operating System

any

Browser

any

Additional Context

Coming from downstream jellyseerr issue

Code of Conduct

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Panda260 commented 5 months ago

i have the same issue