Skip to content

Commit

Permalink
fix: Get the gid from the branch dict when not encrypted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arama0517 committed Dec 26, 2024
1 parent cb4fd17 commit 2c2fabd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/steam/client/cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,9 @@ async def async_fetch_manifest(
unhexlify(egid), self.beta_passwords[(app_id, branch)]
)
else:
manifest_gid = depot_info.get('manifests', {}).get('public')
manifest_gid = depot_info.get('manifests', {}).get('public').get('gid')
else:
manifest_gid = depot_info.get('manifests', {}).get(branch)
manifest_gid = depot_info.get('manifests', {}).get(branch).get('gid')

if isinstance(manifest_gid, dict):
# For some depots, Steam has started returning a dict
Expand Down

0 comments on commit 2c2fabd

Please sign in to comment.