Don't retrieve AppTickets as they aren't needed anymore

pull/19/head
Ryan Kistner 8 years ago
parent 6105a99e72
commit 184ea54020

@ -129,7 +129,7 @@ namespace DepotDownloader
{
steamSession.RequestCDNAuthToken(appId, depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, steamSession.ResolveCDNTopLevelHost(server.Host));
SteamApps.CDNAuthTokenCallback authTokenCallback;
if (steamSession.CDNAuthTokens.TryGetValue(cdnKey, out authTokenCallback))
@ -175,7 +175,7 @@ namespace DepotDownloader
{
steamSession.RequestCDNAuthToken(appId, depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, steamSession.ResolveCDNTopLevelHost(server.Host));
SteamApps.CDNAuthTokenCallback authTokenCallback;
if (steamSession.CDNAuthTokens.TryGetValue(cdnKey, out authTokenCallback))

@ -481,8 +481,8 @@ namespace DepotDownloader
return null;
}
if ( steam3 != null )
steam3.RequestAppTicket( ( uint )depotId );
// Skip requesting an app ticket
steam3.AppTickets[ depotId ] = null;
ulong manifestID = GetSteam3DepotManifest( depotId, appId, branch );
if ( manifestID == INVALID_MANIFEST_ID && branch != "public" )

@ -313,8 +313,20 @@ namespace DepotDownloader
}, () => { return completed; } );
}
public string ResolveCDNTopLevelHost(string host)
{
// SteamPipe CDN shares tokens with all hosts
if (host.EndsWith( ".steampipe.steamcontent.com" ) )
{
return "steampipe.steamcontent.com";
}
return host;
}
public void RequestCDNAuthToken( uint appid, uint depotid, string host )
{
host = ResolveCDNTopLevelHost( host );
var cdnKey = string.Format( "{0:D}:{1}", depotid, host );
if ( CDNAuthTokens.ContainsKey( cdnKey ) || bAborted )

Loading…
Cancel
Save