From e26d2d2f82b2666907f42272d39bdb282bfd6a18 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 19 Sep 2020 03:32:50 -0600 Subject: [PATCH] Pass timeout parameter to get_filesize() (#43) --- pySmartDL/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySmartDL/utils.py b/pySmartDL/utils.py index 60527cd..422c832 100644 --- a/pySmartDL/utils.py +++ b/pySmartDL/utils.py @@ -97,7 +97,7 @@ def is_HTTPRange_supported(url, timeout=15): ''' url = url.replace(' ', '%20') - fullsize = get_filesize(url) + fullsize = get_filesize(url, timeout=timeout) if not fullsize: return False