Georges-Antoine Assi
da74354eed
fix ra platform id
2025-06-17 18:50:25 -04:00
Georges-Antoine Assi
0609747c6c
finish migration platforms
2025-06-16 14:13:23 -04:00
Georges-Antoine Assi
88130a60f8
First batch of work for hasheous
2025-06-15 21:52:36 -04:00
Georges-Antoine Assi
3041d6d97a
Corrected IGDB age ratings
2025-06-10 17:15:49 -04:00
zurdi
8ad3fbadea
Refactor extract_metadata_from_igdb_rom to streamline youtube_video_id retrieval
2025-04-22 21:18:33 +00:00
zurdi
c533e22e84
fix IGDB youtube video id fetch
2025-04-22 21:09:34 +00:00
Georges-Antoine Assi
c75865f460
fix duplicate 64dd entry
2025-02-28 10:11:07 -05:00
Georges-Antoine Assi
561c164bc9
[ROMM-1663] Update Nintendo 64DD slug from nintendo-64dd to 64dd
2025-02-25 17:33:56 -05:00
Georges-Antoine Assi
0592985e5c
wrap all in json error checks
2025-02-24 20:48:58 -05:00
Georges-Antoine Assi
fd05737f6b
[HOTFIX] Fix platform versions endpoint + run scans sync in DEV_MODE
2025-02-23 23:43:01 -05:00
zurdi
53d4761547
misc: migrate IGDB API fields to new version
2025-02-18 17:10:09 +00:00
zurdi
cfbcd82547
fix: changes based on review
2025-02-17 11:10:24 +00:00
zurdi
9d96501b9e
Merge remote-tracking branch 'origin/master' into feature/screenscraper-integration
2025-01-31 00:12:44 +00:00
zurdi
673e3904bb
Improve error handling for IGDB connection issues
2025-01-30 17:23:33 +00:00
Georges-Antoine Assi
696a1c6122
Merge branch 'master' into rom-hashing-background-task
2025-01-15 21:51:23 -05:00
zurdi
e7342ab457
Merge remote-tracking branch 'origin/master' into feature/screenscraper-integration
2025-01-06 12:53:38 +00:00
Michael Manganiello
1c7cbc2328
misc: Change signature for get_matched_rom_by_id function
...
The previous function name `get_matched_roms_by_id` was misleading as it
returned a list of matched ROMs, but searching by ID should always
return either one result or none.
2025-01-05 15:18:19 -03:00
zurdi
db4001dea0
feat: base structure for ss support
2025-01-02 10:34:10 +00:00
Georges-Antoine Assi
84813bd962
Merge branch 'master' into rom-hashing-background-task
2024-12-27 12:02:04 -05:00
Michael Manganiello
e38819b916
misc: Use immutable types for constants
2024-12-25 15:49:18 -03:00
Georges-Antoine Assi
55eee458a1
actaully complete backend
2024-12-21 00:37:37 -05:00
Georges-Antoine Assi
7bde4aee70
complete the rst of the files
2024-12-20 23:45:25 -05:00
Georges-Antoine Assi
3fcce6606c
complete updating the endpoints and models
2024-12-20 22:41:56 -05:00
Michael Manganiello
099f6e6fe2
misc: Remove unneeded Redis key for Twitch token expiration
...
The key `romm:twitch_token_expires_at` is not needed, as we already
set an expiration time for the token key itself. If the token is still
present in Redis, it is valid. If not, it means we either never fetched
it, or it was too close to expiration.
With this change, fetching the Twitch token makes a single Redis call
instead of two.
2024-12-13 14:33:56 -03:00
Michael Manganiello
09c32f2376
misc: Use async cache in IGDB handler
...
One of the only places we are still using the sync cache, can be easily
changed to use the async one.
2024-12-13 09:21:47 -03:00
zurdi
52ccd1c727
fixes based on unit testing
2024-12-02 11:20:40 +00:00
zurdi
6a7433e1f9
removed unnecessary video endpoint request
2024-11-28 16:12:05 +00:00
zurdi
cb5d2438d2
Merge remote-tracking branch 'origin/master' into feature/add-platform-info
2024-11-28 15:23:32 +00:00
zurdi
a29a14aefb
normalized covers and logos
2024-11-28 15:23:20 +00:00
zurdi
be87d92cf7
fixed platform info migration and models
2024-11-28 12:28:29 +00:00
zurdi
06e524f650
Merge branch 'master' into feature/add-platform-info
2024-11-27 22:51:16 +00:00
zurdi
a51dd03e1a
Added full offline support and configurable logging level and API requests debug logs
2024-11-27 17:12:13 +00:00
zurdi
80b7cc7333
added basic platform info from the igdb api call
2024-11-27 11:43:06 +00:00
Michael Manganiello
4ecbac73b3
Merge pull request #1300 from rommapp/fix/igdb-game-search-categories
...
fix: Consider more categories when matching IGDB games
2024-11-17 01:46:23 -03:00
Michael Manganiello
71ac92bfb6
fix: Consider IGDB alternatives when checking for exact match
...
IGDB provides alternative names for games, which we are currently not
considering when checking for an exact match.
This change starts considering alternative names, in addition to the
game's name and slug, when checking for an exact match.
2024-11-16 20:58:20 -03:00
Michael Manganiello
deaac348da
fix: Consider more categories when matching IGDB games
...
This change includes more categories when matching IGDB games. While
testing, some games were incorrectly matched to the wrong game, and the
reason was that the game was a Port (e.g. `Arkanoid`, `Contra`,
`Double Dragon`, `Metal Gear` for NES), a Remake (e.g.
`Adventure Island` for NES), or a Remaster.
2024-11-16 20:44:41 -03:00
Michael Manganiello
009a436915
Merge pull request #1265 from rommapp/misc/initial-igdb-typehints
...
misc: Initial addition of IGDB typehints
2024-10-29 13:23:02 -03:00
Michael Manganiello
6410b6b981
Merge pull request #1263 from rommapp/fix/download-igdb-screenshot-right-aspect-ratio
...
fix: Download IGDB screenshots with right aspect ratio
2024-10-29 13:22:36 -03:00
Michael Manganiello
4bb5cb5149
misc: Initial addition of IGDB typehints
...
The short-term goal is to completely typehint the IGDB API responses. This
first change adds the base structures and enums RomM currently uses.
The `ExpandableField` type will allow us to model the expansion
mechanism the IGDB API provides, where a field can include either an ID,
or the full nested structure.
2024-10-27 00:02:01 -03:00
Michael Manganiello
752096451e
fix: Download IGDB screenshots with right aspect ratio
...
The IGDB API provides screenshots in a 1280x720 resolution, when either
`screenshot_huge` or `720p` size values are used [1]. The
`screenshot_huge` uses `Lfill`, while `720p` uses `Fit` as the resizing
method.
That means that either `screenshot_huge` or `720p` will provide the
correct aspect ratio for 16:9 platforms. However, for platforms with a
different aspect ratio, we need to use the `720p` size value to get the
correct image instead of a cropped one.
Example:
- [`screenshot_huge`](https://images.igdb.com/igdb/image/upload/t_screenshot_huge/c77bodnkwu73gs2jwhw4.jpg )
- [`720p`](https://images.igdb.com/igdb/image/upload/t_720p/c77bodnkwu73gs2jwhw4.jpg )
[1] https://api-docs.igdb.com/#images
2024-10-26 18:26:00 -03:00
Michael Manganiello
0190566530
fix: Broken IGDB age rating image links
...
Some of the image links for IGDB age ratings were broken. This commit
fixes all of them.
2024-10-26 01:19:57 -03:00
Georges-Antoine Assi
6880d11a73
Merge branch 'master' into romm-1114
2024-09-21 12:30:39 -04:00
Georges-Antoine Assi
6cb332efcf
changes from reciew
2024-09-21 12:23:23 -04:00
Georges-Antoine Assi
2765a6e2c3
[ROMM-1176] Fetch video ID and place in carousel
2024-09-08 23:47:25 -04:00
Georges-Antoine Assi
e432bc32ac
Merge branch 'master' into romm-1114
2024-09-03 19:13:33 -04:00
Georges-Antoine Assi
0ce3549f98
[ROMM-1123] Limit returned roms to 2500
2024-09-01 09:55:25 -04:00
Georges-Antoine Assi
c3ea419c68
Add age ratings to UI + filters
2024-08-26 15:55:45 -04:00
Michael Manganiello
0fdbbe4625
misc: Upgrade Python to v3.12 and Alpine to v3.20
...
Included upgrades:
* Python: v3.12
* Alpine: v3.20 (which uses Python 3.12)
* nginx: v1.27.1
2024-08-15 20:14:32 -03:00
Michael Manganiello
749e4d65c1
misc: Use PYTEST_VERSION variable to detect Pytest runs
...
Pytest v8.2 introduced the `PYTEST_VERSION` environment variable [1],
that can be used to check if code is running from within a pytest run.
This way, we can avoid checking the loaded `sys` modules.
[1] https://docs.pytest.org/en/stable/changelog.html#id57
2024-07-27 12:03:44 -03:00
Michael Manganiello
9319081ff6
fix: Return early if IGDB finds an exact match
...
This improvement avoids extra IGDB API requests when a received Rom is
an exact match. It avoids up to 2 requests per Rom, when an exact match
is found.
2024-07-27 00:53:27 -03:00