Skip to content

Commit

Permalink
Fix manifest error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Myth committed May 4, 2020
1 parent 9a6c980 commit f3e0c66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions SteamDepotDownloader-GUI/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public static void Error(string line, params object[] args)
public static void Exception(Exception exception)
{
//_Config.FireOnMessageEvent("exception", exception);
Console.WriteLine("Exception:" + exception.Message+"\n"+exception.StackTrace);
SteamDepotDownloader_GUI.Log.Logx("Exception:" + exception.Message + "\n" + exception.StackTrace);
}

public static string Format(string line, params object[] args)
Expand Down
7 changes: 4 additions & 3 deletions SteamDepotDownloader-GUI/ManifestIDSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,17 @@ private async void ManifestIDSelector_LoadAsync(object sender, EventArgs e)
webClient.Headers.Add(HttpRequestHeader.Cookie,
string.Format("__cfduid={0}; cf_clearance={1}", ConfigStore.TheConfig.StoredCookies["__cfduid"],
ConfigStore.TheConfig.StoredCookies["cf_clearance"]));
webClient.Headers.Add(HttpRequestHeader.Accept, "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3");
webClient.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.19 Safari/537.36 Edg/77.0.235.9");
//webClient.Headers.Add(HttpRequestHeader.Accept, "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3");
//webClient.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.19 Safari/537.36 Edg/77.0.235.9");
//webClient.Headers.Add(HttpRequestHeader.re)
string webPageStr;
try
{
webPageStr = await webClient.DownloadStringTaskAsync("https://steamdb.info/depot/" + PendingDepotID.ToString() + "/manifests/");
}
catch
catch(Exception err)
{
Logger.Exception(err);
if (MessageBox.Show(Resources.FailedToGetManifestHistory + "\n" + Resources.refreshCookieRequest
, "SteamDepotDownloaderGUI", MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.Yes)
{
Expand Down

0 comments on commit f3e0c66

Please sign in to comment.