Closed Divinelink closed 3 months ago
Attention: Patch coverage is 86.95055%
with 95 lines
in your changes missing coverage. Please review.
Project coverage is 70.37%. Comparing base (
a589a20
) to head (5b6dfd5
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In this pull request, we leverage the combined-credits API to fetch and display movie and tv credits for a person. As always we use SQLDelight to store on our database the fetched credits, therefore reducing unnecessary calls when the user re-enters the same person screen.
We've added a "Known For" section that showcases movies and TV shows based on each person's "known for department" property. For example, if someone is known for acting, the section highlights their acting credits. If they're known for directing, it focuses on their directing credits, and so on.
We've implemented a custom algorithm to calculate the "known for" section for each person. Since this isn't provided directly by the API, we developed a tailored solution that factors in several API metrics: popularity, order of importance (for movies), total episodes (for TV series), and vote count. While it's not a perfect match to the original TheMovieDB, it's the closest and best solution available, given that the original "known for" section uses data not accessible through this API.