Commit Graph

4140 Commits

Author SHA1 Message Date
Georges-Antoine Assi
ebd0c072d2 Merge pull request #1044 from rommapp/romm-1012
[ROMM-1012] Fix multi-file download in gakllery view
2024-08-03 19:52:22 -04:00
Georges-Antoine Assi
9f7058d95d Merge pull request #1048 from HellLord77/fix-typo
Fix tyo in feontend
2024-08-02 13:41:42 +00:00
HellLord
697723a7f3 Add missing space 2024-08-02 19:33:17 +06:00
Georges-Antoine Assi
072fc9e1ad Merge pull request #1046 from Casuallynoted/master
Fix incorrectly converted platform icons
2024-07-30 14:13:58 +00:00
Casuallynoted
1e58417dd4 Fix incorrectly converted platform icons
Hotfix for the previously submitted additional icons. Corrects low res/white background issue.
2024-07-30 05:15:30 +00:00
Georges-Antoine Assi
535cb5ad9d Merge pull request #1045 from rommapp/hotfix-related-games
Hotfix and link from related games
2024-07-29 15:34:41 +00:00
Georges-Antoine Assi
48bdfb965c Hotfix and link from related games 2024-07-28 23:30:50 -04:00
Georges-Antoine Assi
fce451a1be [ROMM-1012] Fix multi-file download in gakllery view 2024-07-28 20:57:54 -04:00
Georges-Antoine Assi
05de165cd1 Merge pull request #1041 from rommapp/romm-1020
[ROMM-1020] Fix firmware pagination on mount
2024-07-29 00:25:08 +00:00
Georges-Antoine Assi
1e1d856486 Merge pull request #1042 from rommapp/romm-1018
[ROMM-1018] Fix scanning selected roms
2024-07-29 00:24:58 +00:00
Georges-Antoine Assi
29bb08e43c [ROMM-1018] Fix scanning selected roms 2024-07-28 20:13:44 -04:00
Georges-Antoine Assi
77ba874dd4 [ROMM-1020] Fix firmware pagination on mount 2024-07-28 19:46:30 -04:00
Georges-Antoine Assi
352fd9529e Merge pull request #1038 from Casuallynoted/master
Additional platform icons again!
2024-07-28 15:20:03 +00:00
Casuallynoted
ebfd9dd94d Add files via upload 2024-07-28 05:33:17 +00:00
Casuallynoted
d13680744c Delete frontend/assets/platforms/palm-os.ico
I have better ideas of what to do with this one. Since with previous mobile platforms, I've had an example phone with the logo on the screen, I want to do that for Palm as well. May also come back at some point and do that for J2ME if I have time but I think with that one, the java logo works as a platform icon for now. Here, I'm less certain.
2024-07-28 05:31:40 +00:00
Casuallynoted
c34f147318 Additional icons, for software platfoms 2024-07-28 05:09:55 +00:00
Casuallynoted
514fc9b429 Update ATTRIBUTIONS 2024-07-28 04:49:26 +00:00
Casuallynoted
075998525c Added additional platform icons
More to come!
2024-07-28 04:47:39 +00:00
Georges-Antoine Assi
de2ac3da47 Merge pull request #1037 from rommapp/romm-1029
[ROMM-1029] Store and re-use last saved biois/save/state/core
2024-07-27 23:18:01 -04:00
Georges-Antoine Assi
4b487c2442 remove the selection if it was manually de-selected 2024-07-27 23:06:19 -04:00
Georges-Antoine Assi
30a6ec3d16 make it platform/rom specific 2024-07-27 23:03:16 -04:00
Georges-Antoine Assi
1e33d18695 [ROMM-1029] Store and re-use last saved biois/save/state/core 2024-07-27 22:59:34 -04:00
Michael Manganiello
05a85d581d Merge pull request #1035 from rommapp/misc/use-async-stream-zip
misc: Use async interface for stream-zip
2024-07-27 18:43:17 -03:00
Michael Manganiello
16cb380cc0 misc: Use async interface for stream-zip
Replace use of synchronous `stream_zip` implementation, with
`async_stream_zip`. [1]

[1] https://stream-zip.docs.trade.gov.uk/async-interface/
2024-07-27 18:31:20 -03:00
Michael Manganiello
33e6c2310e Merge pull request #1034 from rommapp/misc/use-PYTEST_VERSION-to-detect-pytest-runs
misc: Use PYTEST_VERSION variable to detect Pytest runs
2024-07-27 13:43:46 -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
9246f87f38 Merge pull request #1032 from rommapp/fix/quick-return-if-igdb-exact-match
fix: Return early if IGDB finds an exact match
2024-07-27 11:51:37 -03:00
Michael Manganiello
66f4c0a6d8 Merge pull request #1033 from rommapp/fix/scheduled-switch-title-db-run
fix: Initialize context on scheduled task
2024-07-27 11:51:07 -03:00
Michael Manganiello
fe5759fec7 fix: Initialize context on scheduled task
Only for this scheduled task, the run was failing because there was no
context initialization that created the httpx session.

Other schedules work as expected, because they do have context
initialization in the functions they call to (e.g. `scan_platforms`).
2024-07-27 01:22:29 -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
Michael Manganiello
9b52a4b813 Merge pull request #1030 from rommapp/fix/enable-async-rules-ruff
fix: Enable flake8-async rules in ruff and fix warnings
2024-07-27 00:41:32 -03:00
Michael Manganiello
d1fda9081f fix: Add missing awaits on read/write for async opened files 2024-07-27 00:38:05 -03:00
Michael Manganiello
c5b150c1eb fix: Enable flake8-async rules in ruff and fix warnings
`ASYNC` rules [1] tries to find issues regarding asynchronous code. This
change enables `ruff` to start reporting these issues, and fixes
existing warnings.

[1] https://docs.astral.sh/ruff/rules/#flake8-async-async
2024-07-26 21:40:46 -03:00
Michael Manganiello
146c26cc53 Merge pull request #1023 from rommapp/misc/migrate-igdb-handler-to-async
misc: Migrate IGDBBaseHandler to async
2024-07-26 21:25:46 -03:00
Michael Manganiello
96699a2f1b fix: Catch ProtocolError when writing screenshots/covers 2024-07-26 21:19:18 -03:00
Michael Manganiello
aced1f1ff2 misc: Migrate IGDBBaseHandler to async
Convert `IGDBBaseHandler` methods to be asynchronous, and use an `httpx`
async client, instead of `requests` sync client.

This change also removes the direct dependency with `requests`, as the
project no longer uses it, preferring `httpx` instead.
2024-07-26 21:19:01 -03:00
Georges-Antoine Assi
141edf9d2e Merge pull request #1028 from rommapp/share-public-collections
Public collections
2024-07-25 22:38:21 -04:00
Georges-Antoine Assi
ad3a588631 filter collections for each user 2024-07-25 19:53:44 -04:00
Georges-Antoine Assi
fafd48586c Merge pull request #1026 from rommapp/romm-1025
[ROMM-1025] Replace game-and-watch with g-and-w
2024-07-25 17:41:09 -04:00
Zurdi
38a500f577 Merge branch 'master' into romm-1025 2024-07-25 21:35:18 +02:00
Georges-Antoine Assi
7555c0607a [ROMM-1025] Replace game-and-watch with g-and-w 2024-07-25 14:26:06 -04:00
Michael Manganiello
377d460623 Merge pull request #1024 from rommapp/misc/refactor-scan-process
misc: Refactor scan process by splitting single function
2024-07-25 15:05:15 -03:00
Georges-Antoine Assi
92b23656aa start making collecitons public 2024-07-25 13:49:43 -04:00
Michael Manganiello
2bfc3c4c7e misc: Refactor scan process by splitting single function
This change mainly refactors the `scan_platforms` function, moving part
of its logic to `_identify_platform`, `_identify_firmware`, and
`_identify_rom`.

The logic is simpler this way, each smaller function returns `ScanStats`
that can be merged by the caller, and it simplifies future performance
improvements.
2024-07-25 10:29:46 -03:00
Georges-Antoine Assi
e7e37f4680 Merge pull request #1021 from rommapp/misc/replace-pytest-vcr-with-pytest-recording
misc: Replace pytest-vcr dependency with pytest-recording
2024-07-24 17:57:17 -04:00
Michael Manganiello
959e896aa3 misc: Replace pytest-vcr dependency with pytest-recording
`pytest-vcr` [1] is no longer maintained (last commit was in 2020), and
`VCR.py` recommends [2] `pytest-recording` instead.

Also, `pytest-vcr` does not correctly support `httpx` [3].

This change also removes unused cassettes.

[1] https://github.com/ktosiek/pytest-vcr
[2] https://vcrpy.readthedocs.io/en/latest/usage.html#pytest-integration
[3] https://github.com/ktosiek/pytest-vcr/issues/46
2024-07-24 12:39:41 -03:00
Michael Manganiello
158b16c2c1 Merge pull request #1017 from rommapp/misc/migrate-filesystem-resource-handler-to-async
misc: Migrate filesystem resource handler to async
2024-07-24 11:06:59 -03:00
Michael Manganiello
56066d6765 misc: Migrate filesystem resource handler to async
For filesystem resource handler, `requests` calls have been replaced
with `httpx`, and file I/O has been replaced with `anyio` utils.

The existing approach to save covers and screenshots, by calling
`shutil.copyfileobj` with the raw response is no longer needed. `httpx`
does not provide a file-like object when streaming [1], so there's no
easy drop-in replacement.

However, the applied solution correctly builds the file iteratively, by
consuming the response in chunks.

[1] https://github.com/encode/httpx/discussions/2296
2024-07-24 00:18:17 -03:00
Georges-Antoine Assi
c81fe52820 Merge pull request #1016 from TyroneSlothrop/patch-2
Update config.batocera-retrobat.yml
2024-07-23 21:00:17 -04:00
Tyrone Slothrop
cfd2e129a0 Update config.batocera-retrobat.yml
Updates after discovering all the extra cool icons already available (but not advertised in supported platforms!) and sorting.
2024-07-24 00:15:29 +01:00