egirault / googleplay-api

Google Play Unofficial Python API - This project was a PoC and is not maintained anymore. Please feel free to fork it and improve it in any way.
879 stars 373 forks source link

Bad download size for some apps #34

Closed cryptax closed 9 years ago

cryptax commented 10 years ago

Hi!

Looks like the displayed size for some packages is wrong:

Downloading app: com.gameloft.android.ANMP.GloftR3HM with id: xyz Downloading 857.4MB... Done Downloading app: com.gameloft.android.ANMP.GloftR2HM with id: xyz Downloading 467.8MB... Done

The apps above are fortunately not as big as that :) (around 21M)

This is a minor bug.

I suppose that in the code, the size format is corrupt or incorrect: print "Downloading %s..." % sizeof_fmt(doc.details.appDetails.installationSize),

Regards

badrigopalan commented 9 years ago

Unfortunately, the displayed size IS correct. The full size of the app should have the apk, and the expansion (obb) files. The total size is the sum of all three. This code only downloads the main apk, not the expansion files, so the apk size after download is smaller that what the doc.details.appDetails.installationSize is.

Ideally, the script would download the apk, main and patch obb files.