Added card backs to pdf. Fixed determination of player cards from DB

This commit is contained in:
ftc
2025-11-16 17:43:23 +03:00
parent 347b116929
commit 82f664fafa
7 changed files with 315 additions and 5 deletions
+7
View File
@@ -10,6 +10,7 @@ namespace ArkhamPnP
{
internal class ArkhamDBApi
{
const string BASE_IMAGE_URL = "https://ru.arkhamdb.com";
const string BASE_URL = "https://ru.arkhamdb.com/api/";
HttpClient http = new HttpClient();
@@ -38,5 +39,11 @@ namespace ArkhamPnP
}
return cards;
}
public async Task<Stream> GetImage(string path)
{
var result = await http.GetAsync(BASE_IMAGE_URL + path);
return await result.Content.ReadAsStreamAsync();
}
}
}