From aa5affe366d5bbeb6cf9eda41556d1c35acc6ef9 Mon Sep 17 00:00:00 2001 From: aaronldunlap Date: Thu, 23 Jan 2020 17:09:39 -0600 Subject: [PATCH] Change humanFileSize to default to SI notation --- plexpy/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/helpers.py b/plexpy/helpers.py index ae47f5cd..d6710c75 100644 --- a/plexpy/helpers.py +++ b/plexpy/helpers.py @@ -1006,7 +1006,7 @@ def build_datatables_json(kwargs, dt_columns, default_sort_col=None): return json.dumps(json_data) -def humanFileSize(bytes, si=False): +def humanFileSize(bytes, si=True): if str(bytes).isdigit(): bytes = int(bytes) else: