mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Be more verbose on progress
This commit is contained in:
@@ -377,12 +377,19 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
HtmlNode htmlNode = htmlDocument.DocumentNode.SelectSingleNode("//span[@class='progress_info_bold']");
|
||||
if (htmlNode != null) {
|
||||
return !htmlNode.InnerText.Contains("No card drops");
|
||||
if (htmlNode == null) {
|
||||
Logging.LogNullError(nameof(htmlNode), Bot.BotName);
|
||||
return null;
|
||||
}
|
||||
|
||||
Logging.LogNullError(nameof(htmlNode), Bot.BotName);
|
||||
return null;
|
||||
string progress = htmlNode.InnerText;
|
||||
if (string.IsNullOrEmpty(progress)) {
|
||||
Logging.LogNullError(nameof(progress));
|
||||
return null;
|
||||
}
|
||||
|
||||
Logging.LogGenericInfo("Status for " + appID + ": " + progress);
|
||||
return progress.Equals("No card drops remaining");
|
||||
}
|
||||
|
||||
private bool FarmMultiple() {
|
||||
|
||||
Reference in New Issue
Block a user