[cli] Include DLC install size

This commit is contained in:
derrod 2021-09-10 20:36:51 +02:00
parent fbd0df1ecc
commit 730225c06b

View file

@ -268,7 +268,8 @@ class LegendaryCLI:
elif game.app_name in versions and versions[game.app_name] != game.version: elif game.app_name in versions and versions[game.app_name] != game.version:
print(f' -> Update available! Installed: {game.version}, Latest: {versions[game.app_name]}') print(f' -> Update available! Installed: {game.version}, Latest: {versions[game.app_name]}')
for dlc in installed_dlcs[game.app_name]: for dlc in installed_dlcs[game.app_name]:
print(f' + {dlc.title} (App name: {dlc.app_name} | Version: {dlc.version})') print(f' + {dlc.title} (App name: {dlc.app_name} | Version: {dlc.version}) | '
f'{dlc.install_size / (1024*1024*1024):.02f} GiB)')
if dlc.app_name in versions and versions[dlc.app_name] != dlc.version: if dlc.app_name in versions and versions[dlc.app_name] != dlc.version:
print(f' -> Update available! Installed: {dlc.version}, Latest: {versions[dlc.app_name]}') print(f' -> Update available! Installed: {dlc.version}, Latest: {versions[dlc.app_name]}')