steam icon indicating copy to clipboard operation
steam copied to clipboard

CDNClient: Cope with longer manifest descriptions for some depots

Open smcv opened this issue 2 years ago • 1 comments

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

smcv avatar May 05 '23 16:05 smcv

I made a fork that incorporates this PR as well as several other pending PRs in this repo. I don't really particularly want to be the new maintainer for this, but if I'm still using it I may as well.

https://github.com/solsticegamestudios/steam

WinterPhoenix avatar Jul 25 '24 02:07 WinterPhoenix