From d8b1db536ceba32aab786ba03857929d675c95d3 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 17 Mar 2020 09:37:10 -0700 Subject: [PATCH] Fix file size notification parameter truncated to integer (Fixes Tautulli/Tautlli-Issues#226) --- plexpy/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/helpers.py b/plexpy/helpers.py index e8326ffb..9eb4a5eb 100644 --- a/plexpy/helpers.py +++ b/plexpy/helpers.py @@ -1026,7 +1026,7 @@ def build_datatables_json(kwargs, dt_columns, default_sort_col=None): def humanFileSize(bytes, si=False): if str(bytes).isdigit(): - bytes = int(bytes) + bytes = cast_to_float(bytes) else: return bytes