aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/openload.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/openload.py')
-rw-r--r--hypervideo_dl/extractor/openload.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hypervideo_dl/extractor/openload.py b/hypervideo_dl/extractor/openload.py
index 0c20d01..dfdd0e5 100644
--- a/hypervideo_dl/extractor/openload.py
+++ b/hypervideo_dl/extractor/openload.py
@@ -17,6 +17,7 @@ from ..utils import (
get_exe_version,
is_outdated_version,
std_headers,
+ process_communicate_or_kill,
)
@@ -226,7 +227,7 @@ class PhantomJSwrapper(object):
self.exe, '--ssl-protocol=any',
self._TMP_FILES['script'].name
], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- out, err = p.communicate()
+ out, err = process_communicate_or_kill(p)
if p.returncode != 0:
raise ExtractorError(
'Executing JS failed\n:' + encodeArgument(err))