mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Misc
This commit is contained in:
@@ -415,7 +415,8 @@ namespace ArchiSteamFarm {
|
||||
foreach (KeyValue lineItem in lineItems) {
|
||||
uint packageID = lineItem["PackageID"].AsUnsignedInteger();
|
||||
if (packageID == 0) {
|
||||
// Valid, coupons have PackageID of -1 (don't ask me why)
|
||||
// Coupons have PackageID of -1 (don't ask me why)
|
||||
// We'll use ItemAppID in this case
|
||||
packageID = lineItem["ItemAppID"].AsUnsignedInteger();
|
||||
if (packageID == 0) {
|
||||
Program.ArchiLogger.LogNullError(nameof(packageID));
|
||||
@@ -429,8 +430,9 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
gameName = WebUtility.HtmlDecode(gameName); // Apparently steam expects client to decode sent HTML
|
||||
Items[packageID] = WebUtility.HtmlDecode(gameName);
|
||||
// Apparently steam expects client to decode sent HTML
|
||||
gameName = WebUtility.HtmlDecode(gameName);
|
||||
Items[packageID] = gameName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user