From d8e52f209884703f4c4ef04280f97b69679d6f67 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 3 Oct 2014 07:34:09 +0800 Subject: [PATCH] Fixes displayshow error for series with special characters --- sickbeard/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index b3c5bab9..e5b720c7 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -1409,9 +1409,9 @@ def human(size): def get_size(start_path='.'): total_size = 0 - for dirpath, dirnames, filenames in os.walk(start_path): + for dirpath, dirnames, filenames in ek.ek(os.walk, start_path): for f in filenames: - fp = os.path.join(dirpath, f) - total_size += os.path.getsize(fp) + fp = ek.ek(os.path.join, dirpath, f) + total_size += ek.ek(os.path.getsize, fp) return total_size