0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[phantomjs] Fix bug in 587021cd9f (#4833)

Authored by: elyse0
This commit is contained in:
Elyse 2022-09-03 01:44:01 -05:00 committed by GitHub
parent aa824dd10b
commit 69082b38dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ def get(self, url, html=None, video_id=None, note=None, note2='Executing JS on w
'jscode': jscode, 'jscode': jscode,
})) }))
stdout = self.execute(jscode, video_id, note2) stdout = self.execute(jscode, video_id, note=note2)
with open(self._TMP_FILES['html'].name, 'rb') as f: with open(self._TMP_FILES['html'].name, 'rb') as f:
html = f.read().decode('utf-8') html = f.read().decode('utf-8')