aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/openload.py
diff options
context:
space:
mode:
authorchristoph-heinrich <christoph-heinrich@users.noreply.github.com>2022-06-18 03:57:22 +0200
committerGitHub <noreply@github.com>2022-06-17 18:57:22 -0700
commite121e3cee731426f620e17939141018d09661fa2 (patch)
treee50f5f24229fd6bc464a71937e3b87303062868c /yt_dlp/extractor/openload.py
parent7e9a61258543f64113e779f2f82fe7a29827489d (diff)
[cleanup] Minor fixes (#4096)
Authored by: christoph-heinrich
Diffstat (limited to 'yt_dlp/extractor/openload.py')
-rw-r--r--yt_dlp/extractor/openload.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/openload.py b/yt_dlp/extractor/openload.py
index d987cd927..22d7e1a84 100644
--- a/yt_dlp/extractor/openload.py
+++ b/yt_dlp/extractor/openload.py
@@ -216,10 +216,10 @@ class PhantomJSwrapper:
[self.exe, '--ssl-protocol=any', self._TMP_FILES['script'].name],
text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if returncode:
- raise ExtractorError(f'Executing JS failed\n:{stderr}')
+ raise ExtractorError(f'Executing JS failed:\n{stderr}')
with open(self._TMP_FILES['html'].name, 'rb') as f:
html = f.read().decode('utf-8')
self._load_cookies()
- return (html, stdout)
+ return html, stdout