Commit graph

10 commits

Author SHA1 Message Date
Mathieu Comandon 38fbe9f05e Ruff reformat 2024-02-24 21:02:06 -08:00
Daniel Johnson 59abef7f69 Placate flake8!
Every single change is just whitespace. Python!
2023-01-24 17:26:28 -05:00
Mathieu Comandon 157bbee6c8 Allow tests to run without moddb installed 2023-01-19 20:03:27 -08:00
Antoine Mazeas 133c8ab29d some code cleanup
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00
Antoine Mazeas b167143453 Code style and formatting
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00
Antoine Mazeas bf7d7f91a1 Add test for handling noop when missing lib
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00
Antoine Mazeas 97ac480c67 Guard against mirror urls to avoid long hangs
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00
Antoine Mazeas 88a004c86d Revert requiring MODDB: prefix
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00
Antoine Mazeas 10c4c8fcdf Add mandatory MODDB: prefix as per maintainer wish
+ add more test coverage

Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00
Antoine Mazeas 18c2f97002 Add ModDB download helper
This helper facility will seamlessly swap a "File" url (e.g. "https://www.moddb.com/games/tribes/downloads/starsiege-tribes-retro-version") into a mirror download link.

This enables installer authors to specify files to be downloaded directly from ModDB, e.g.

```
files:
    - t1_setup:
        url: https://www.moddb.com/games/tribes/downloads/starsiege-tribes-retro-version
        filename: t1retro.exe
        referer: https://www.moddb.com/games/tribes/downloads
```

Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2023-01-19 19:43:53 -08:00