summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/fb.py b/fb.py
index 40735dd..f1c39e2 100755
--- a/fb.py
+++ b/fb.py
@@ -737,6 +737,12 @@ class FBClient:
items = list(items.values())
multipasteItems = list(multipasteItems.values())
+ uniqueSize = dict()
+ for item in items:
+ uniqueSize[item['hash']] = int(item['filesize'])
+
+ totalSize = sum([v for v in uniqueSize.values()])
+
for item in multipasteItems:
item['id'] = item['url_id']
item['filename'] = '%s file(s)' % (len(item['items']))
@@ -759,6 +765,11 @@ class FBClient:
] for i in items]
print_table(itemsTable)
+ print("\n")
+ print("Total sum of your distinct uploads: %s" % (humanize_bytes(totalSize)))
+ print("Total number of uploads (excluding multipastes): %s" % (len(resp['items'])))
+ print("Total number of multipastes: %s" % (len(multipasteItems)))
+
def display_version(self):
print(self.version)