diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-20 11:45:20 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-20 11:45:20 -0500 |
commit | c7afb25e19a91493db6069d1db9f7d1bc8491dc1 (patch) | |
tree | d4f4d0a125e191585af49dcfb189d2f1ba9acf17 /yt_dlp/extractor/openload.py | |
parent | 000d2844fd93d8c35fc74d22588291e7c7d742fa (diff) | |
parent | d3c93ec2b7f5bcb872b0afb169efaa2f1abdf6e2 (diff) | |
download | hypervideo-pre-c7afb25e19a91493db6069d1db9f7d1bc8491dc1.tar.lz hypervideo-pre-c7afb25e19a91493db6069d1db9f7d1bc8491dc1.tar.xz hypervideo-pre-c7afb25e19a91493db6069d1db9f7d1bc8491dc1.zip |
updated from upstream | 20/10/2021 at 11:45
Diffstat (limited to 'yt_dlp/extractor/openload.py')
-rw-r--r-- | yt_dlp/extractor/openload.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/yt_dlp/extractor/openload.py b/yt_dlp/extractor/openload.py index dfdd0e526..6ec54509b 100644 --- a/yt_dlp/extractor/openload.py +++ b/yt_dlp/extractor/openload.py @@ -17,7 +17,7 @@ from ..utils import ( get_exe_version, is_outdated_version, std_headers, - process_communicate_or_kill, + Popen, ) @@ -223,11 +223,10 @@ class PhantomJSwrapper(object): else: self.extractor.to_screen('%s: %s' % (video_id, note2)) - p = subprocess.Popen([ - self.exe, '--ssl-protocol=any', - self._TMP_FILES['script'].name - ], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - out, err = process_communicate_or_kill(p) + p = Popen( + [self.exe, '--ssl-protocol=any', self._TMP_FILES['script'].name], + stdout=subprocess.PIPE, stderr=subprocess.PIPE) + out, err = p.communicate_or_kill() if p.returncode != 0: raise ExtractorError( 'Executing JS failed\n:' + encodeArgument(err)) |