Add games library with IGDB, file explorer and static files script
This commit is contained in:
1 parent
a16444451a
commit
ec57bd73b3
65 files changed
+2230
-352
No files matched your search
@@ -75,5 +75,14 @@ def delete_book(goodreads_id: str) -> None:
|
||||
send("DELETE", f"/api/library/books/{quoted(goodreads_id)}")
|
||||
|
||||
|
||||
def save_game(igdb_id: str, fields: dict) -> dict:
|
||||
return send("PUT", f"/api/library/games/{quoted(igdb_id)}", fields)
|
||||
|
||||
|
||||
def delete_game(igdb_id: str) -> None:
|
||||
send("DELETE", f"/api/library/games/{quoted(igdb_id)}")
|
||||
|
||||
|
||||
def is_stored_image(path: str | None) -> bool:
|
||||
return bool(path) and path.startswith(IMAGE_PATH_PREFIX)
|
||||
|
||||
Reference in new issue
Block a user