From c9c4271d2f9f673bc289e53b0ea9b00263ac7d0e Mon Sep 17 00:00:00 2001 From: Hodza Alban Date: Mon, 7 Aug 2017 22:20:17 +0200 Subject: [PATCH] fixed filename with space problem --- vid_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vid_utils.py b/vid_utils.py index 21b74aa..28e8282 100644 --- a/vid_utils.py +++ b/vid_utils.py @@ -9,7 +9,7 @@ from time import strftime, strptime def check_dimension(f): """ If f is larger than 50MB it divides it into files up to 45MB """ if os.path.getsize(f) > 50 * 1024 * 1023: - os.system("split -b 45MB {0} {1}".format(f, f)) + os.system('split -b 49MB "{0}" "{1}"'.format(f, f)) os.remove(f)