Commit Graph

103 Commits

Author SHA1 Message Date
Michael Manganiello
b2ea84b5bb misc: Create IGDB service adapter
Add a new service adapter for the IGDB API, to separate concerns with
RomM's handler for metadata. This adapter is agnostic to the handler and
only provides methods to interact with the API, and correctly return
typed responses.

The API authorization was also improved to not rely on decorating each
method that makes requests, but instead using an `aiohttp` middleware
to automatically add the required headers to each request.

Utils `mark_expanded` and `mark_list_expanded` where added to help
narrow the types of IGDB's expandable fields when we know they are
expanded, for `mypy` type checking.
2025-08-30 20:21:15 -03:00
Georges-Antoine Assi
d41a920c37 normalize split tiles for ssfr 2025-08-17 20:29:44 -04:00
Georges-Antoine Assi
f0574577c9 Prefer lower IDs when matching games with same title 2025-08-17 19:53:29 -04:00
Georges-Antoine Assi
659a3eb104 use jaro-winkler algo 2025-08-08 16:54:26 -04:00
Georges-Antoine Assi
1a2944806b Use best-match algo for more providers 2025-08-07 16:57:29 -04:00
Georges-Antoine Assi
90f10e8946 Fixed platform slugs that were missed 2025-08-06 17:28:10 -04:00
Georges-Antoine Assi
8ce943a514 use fastapi status 2025-08-02 22:17:07 -04:00
Georges-Antoine Assi
c2c80fbfc3 fix tests 2025-07-24 17:33:14 -04:00
Georges-Antoine Assi
1955da78f2 finish all the handlers 2025-07-24 17:05:39 -04:00
Georges-Antoine Assi
59a2e5d5aa move away from explicit LIST use 2025-07-24 16:41:17 -04:00
Georges-Antoine Assi
8a76528815 finish translating keys 2025-07-24 16:09:49 -04:00
Georges-Antoine Assi
b431aa4d7e manual fixes 2025-07-24 15:43:03 -04:00
Georges-Antoine Assi
39e6fd3579 use ups keys for all lists 2025-07-24 15:30:03 -04:00
Georges-Antoine Assi
1cc01922d9 comlpete migration and transition 2025-07-24 10:25:41 -04:00
Georges-Antoine Assi
1bb33be803 more work migrating slugs 2025-07-24 09:30:57 -04:00
Georges-Antoine Assi
973f42cd0b update watasra supervision 2025-07-23 22:20:18 -04:00
Georges-Antoine Assi
595c52bcab Unify singular slugs 2025-07-23 21:52:52 -04:00
Georges-Antoine Assi
3372b754fe Group generated platforms by slug and filter by name 2025-07-21 17:22:16 -04:00
Georges-Antoine Assi
73545ffa97 [HOTFIX] Fix uploading cover art manually 2025-07-18 23:32:17 -04:00
Georges-Antoine Assi
28bc570da1 fixup family name and slug on igdb games 2025-07-18 22:41:42 -04:00
Georges-Antoine Assi
58a0b15f00 refactor platforms drawer 2025-07-18 21:38:27 -04:00
Georges-Antoine Assi
d53f2c71d5 fix platform family names 2025-07-18 21:30:58 -04:00
Georges-Antoine Assi
6440dbd851 update roms_metadata virtual table 2025-07-15 11:07:13 -04:00
Georges-Antoine Assi
5d6ae2c842 stop overwriting IDs on scan 2025-07-14 10:31:19 -04:00
Georges-Antoine Assi
d1074553c4 add and use platform_slug in versions 2025-07-13 15:27:38 -04:00
Georges-Antoine Assi
cfe848e14a load all igsb platform data into app 2025-07-13 14:59:54 -04:00
Georges-Antoine Assi
c9b09e9ee1 better search term nomralization 2025-07-12 23:52:51 -04:00
Georges-Antoine Assi
3781cbdb6b catch json errors on all ends 2025-07-12 19:16:50 -04:00
Georges-Antoine Assi
d349eef42a add options to normalization 2025-07-12 10:48:04 -04:00
Georges-Antoine Assi
c76caed145 normalized search results 2025-07-12 09:56:18 -04:00
Georges-Antoine Assi
c1098fc16b Misc metadata fixes 2025-07-11 18:17:14 -04:00
Georges-Antoine Assi
837d36375d Fix metadata issues in heasheous handler 2025-07-09 09:14:41 -04:00
Georges-Antoine Assi
aea315ff24 complete hasheous proxy 2025-07-05 18:29:13 -04:00
Georges-Antoine Assi
41d7bf8f13 start using hasheous as igdb proxy 2025-06-18 10:08:20 -04:00
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