Chaged colors

Added handelrs for networking exceptions
Made Book selector a bit bigger
Fixed issue with publishing date
This commit is contained in:
2025-02-04 09:03:10 +01:00
parent 13c26eb3d8
commit 3c44c8dc8a
8 changed files with 84 additions and 38 deletions

View File

@@ -13,7 +13,7 @@ public class BareBookInfo(string editionId, string title, string? workId = null)
public Book getBook()
{
Dictionary<String, Object>? responce = JsonSerializer.Deserialize<Dictionary<String, Object>>(
Helper.Request($"https://openlibrary.org/books/{EditionID}.json"));
Helper.Request($"https://openlibrary.org/books/{EditionID}.json") ?? throw new Exception("Network Error"));
if (responce == null)
{