From 50724167cebc1019d44c4f14e5a9ece8ffb6b8f9 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Wed, 3 Jan 2018 00:35:30 -0400 Subject: [PATCH] [openload] fix js evaluation --- youtube_dl/extractor/openload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py index b282bcfd9..c0dc0c0d9 100644 --- a/youtube_dl/extractor/openload.py +++ b/youtube_dl/extractor/openload.py @@ -95,7 +95,7 @@ class PhantomJSwrapper(object): phantom.exit(); }}; page.onLoadFinished = function(status) {{ - if(page.url === "") {{ + if(page.url === "" || page.url === "about:blank") {{ page.setContent(fs.read("{html}", read), "{url}"); }} else {{