Skip to content

Conversation

@TimilsinaBimal
Copy link
Owner

No description provided.

@vercel
Copy link

vercel bot commented Jan 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
watchly Ready Ready Preview, Comment Jan 3, 2026 4:50pm

@TimilsinaBimal TimilsinaBimal linked an issue Jan 3, 2026 that may be closed by this pull request
@gemini-code-assist
Copy link

Summary of Changes

Hello @TimilsinaBimal, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the flexibility and user experience for integrating external poster rating services. It refactors the backend to support multiple providers, introduces a dedicated API endpoint for validating API keys, and updates the user settings to accommodate provider-specific configurations. On the frontend, users now have a more intuitive interface to select their preferred poster rating service and validate their API keys, ensuring a smoother setup process. A robust migration mechanism is also in place to seamlessly transition existing users from the old single-key setup to the new, more versatile configuration.

Highlights

  • Poster Rating Provider Flexibility: Introduced the ability to configure different poster rating providers, specifically adding support for 'Top Posters' alongside the existing 'RPDB' service.
  • API Key Validation Endpoint: Added a new API endpoint /poster-rating/validate to allow real-time validation of API keys for selected poster rating providers directly from the frontend.
  • User Settings and Data Migration: Refactored user settings to store poster rating configuration as an object (poster_rating) instead of a single rpdb_key. A migration strategy is implemented to automatically convert old rpdb_key values to the new format upon user data retrieval.
  • Enhanced Frontend Configuration: Updated the user interface to include a dropdown for selecting poster rating providers, a dynamic input field for the API key with visibility toggle, and a validation button for immediate feedback on API key validity.
  • Backend Service Abstraction: Created a PosterRatingsFactory to abstract the logic for interacting with different poster rating services, making it easier to add more providers in the future.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new feature for integrating external poster rating providers (RPDB and Top Posters) into the application. It adds new API endpoints for validating provider API keys, creates dedicated service classes for each provider to handle API interactions, and updates user settings to store provider configuration instead of a single RPDB key. The changes include a migration strategy for existing rpdb_key settings to the new poster_rating object format, with encryption and decryption handled in the token store. The frontend UI has been updated to provide a dropdown for selecting a poster rating provider, an API key input field with a visibility toggle and client-side validation, and dynamic help text. Review comments highlighted issues such as the hardcoded fallback parameter in the RPDB service, the hardcoded imdb provider in the poster URL resolution logic which could lead to incorrect lookups for TMDB IDs, and the broad exception handling in the API key validation endpoint. Additionally, suggestions were made to gracefully handle failed API key decryption by setting the key to None, to use an Enum for provider validation in the Pydantic model for better type safety, and to remove redundant error messages during client-side API key validation.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@TimilsinaBimal TimilsinaBimal merged commit 501ce99 into dev Jan 3, 2026
4 checks passed
@TimilsinaBimal TimilsinaBimal deleted the feat/rating-posters branch January 3, 2026 16:53
TimilsinaBimal added a commit that referenced this pull request Jan 9, 2026
* fix: get started button is not functional

* fix: get started button is not functional

* chore: bump version to 1.0.1 (#38)

* feat: Add recency preference and genre diversification to recommendation logic (#44)

* feat: Enhance TMDBService with trending and top-rated content retrieval

* feat: Add recency preference and genre diversification to recommendation logic

* feat: Refactor TMDBService usage to support language preference across services

* feat: Refactor library item fetching and caching for improved performance and consistency

* feat: Implement caching for language retrieval and refactor auth key encryption

* feat: Add middleware for Redis call tracking and enhance token store with call counting

* chore: bump version to v1.1.0

* feat: Enhance Redis client management and implement rate limiting for token requests

* feat: Refactor catalog fetching and update migration task handling

* chore: bump version to v1.1.2

* feat: add option to configure top_posters for poster rating (#94)

* feat: add option to configure top_posters for poster rating

* feat: implement poster rating API key validation and frontend integration

* feat: add display_at_home and shuffle options to Stremio identity fetch

* refactor: rename get_poster methods to get_poster_url for clarity and improve error handling in API key validation

* chore: bump version to v1.6.2-rc.1

* feat: add User-Agent header to API requests in TopPostersService

* feat: update PosterRatingConfig to use Literal for provider type validation

* refactor: rename get_poster method to get_poster_url for consistency in PosterRatingsFactory

* refactor: update constants for top picks and adjust scoring logic to enhance recommendation quality

* fix: priotrize reacted items when preparing library even if they are not watched

* chore: bump version to v1.6.2-rc.2

* chore: bump version to v1.7.0
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.

Feature: Integrate Top Posters API

2 participants