ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.05k stars 127 forks source link

CDNClient: Cope with longer manifest descriptions for some depots #437

Open smcv opened 1 year ago

smcv commented 1 year ago

Some depots now have a dict like {"public": {"gid": GID, ...}, ...} where we would traditionally have seen a flat dict {"public": GID, ...}. Not all depots have this: at the time of writing, 1628350 "Steam Linux Runtime - Sniper" does, but 1391110 "Steam Linux Runtime - Soldier" does not. Presumably this is a change that is being rolled out gradually to let the Steam client give better estimates of the size of a depot.

Cope with either format, by retrieving the gid field if the nested dict is present.

Resolves: https://github.com/ValvePython/steam/issues/436