-
-
Notifications
You must be signed in to change notification settings - Fork 320
feat: Add metadata locale selection for IGDB and ScreenScraper #2700
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
feat: Add metadata locale selection for IGDB and ScreenScraper #2700
Conversation
Summary of ChangesHello @tvdu29, 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 user experience by allowing personalized metadata retrieval. It introduces a new configuration option for specifying preferred locales for IGDB and ScreenScraper, ensuring that game titles, summaries, and cover art are displayed in the user's chosen language or region when available. This feature is supported by backend logic for configuration management and API integration, alongside a user-friendly frontend interface for setting these preferences, complete with intelligent fallbacks. Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this 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 valuable feature, allowing users to select metadata locales for IGDB and ScreenScraper. The implementation is solid, with good separation of concerns in the backend and a clean UI on the frontend. The refactoring in igdb_handler.py to remove duplicated code is a significant improvement. I've identified a few areas for improvement, mainly concerning potential performance optimizations by reducing file I/O and removing some unused code that was likely part of an earlier implementation approach. Overall, this is a great step forward for metadata customization.
|
excited to try this! can you post an example of the value of |
Hey! Here's an example of how scan:
provider_locales:
igdb: "ja-JP"
ss: "fr"Currently supported locales: IGDB (region codes - there may be more available, default is US version):
ScreenScraper (language codes):
|
|
right so we already support languages under |
Thanks for the offer! I have to admit I was pretty confused about the distinction between region and locale while building this, so apologies if I've mixed things up. Here's what I understand now about how they're currently used: ScreenScraper:
IGDB:
The difference: If you think there's a cleaner way to structure this by mapping |
I think you nailed it here, we co-opt |
- Add provider-specific locale config with UI dropdowns in Settings - ScreenScraper: select language for synopsis/metadata - IGDB: select region for localized names/covers - Fallback warnings when locale not found 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
de27396 to
6a85f9a
Compare
Remove provider-specific locale configuration and use existing scan.priority.region for IGDB regional variants. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
You're right - I've reimplemented IGDB to use I realize now that ScreenScraper was already using ChangesIGDB Handler:
ScreenScraper Handler:
Configuration: scan:
priority:
region: ["jp", "eu", "us"] # Used by IGDB for regional variants
language: ["fr", "en"] # Used by ScreenScraper for descriptions |
|
/gemini review |
There was a problem hiding this 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 valuable feature allowing users to select metadata locales for IGDB and ScreenScraper, enhancing the user experience by providing localized game information. The refactoring in igdb_handler.py to use a dedicated build_igdb_rom function is a good step towards reducing code duplication and improving maintainability. The addition of warning logs when a preferred locale is not found is also a thoughtful touch for debugging and user feedback.
Description
Having the possibility to pull metadata in my language and proper jacket for my version of the games is something I really want :)
This PR adds the possibility to choose a locale for compatible metadata sources. It is a bit crude for now but I find it to be a nice first step.
Checklist
Screenshots