From 620ee8712e264c71b444748c86a51b258818b4a1 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sat, 30 Dec 2017 15:03:13 +0800 Subject: [PATCH] [openload] Fix extraction (closes #15118) --- ChangeLog | 6 ++++++ youtube_dl/extractor/openload.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4323cfc5c..08aed1ba7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +version + +Extractors +* [openload] Fix extraction (#15118) + + version 2017.12.28 Extractors diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py index 81c1317b6..b282bcfd9 100644 --- a/youtube_dl/extractor/openload.py +++ b/youtube_dl/extractor/openload.py @@ -332,7 +332,8 @@ def _real_extract(self, url): phantom = PhantomJSwrapper(self, required_version='2.0') webpage, _ = phantom.get(page_url, html=webpage, video_id=video_id, headers=headers) - decoded_id = get_element_by_id('streamurl', webpage) + decoded_id = (get_element_by_id('streamurl', webpage) or + get_element_by_id('streamuri', webpage)) video_url = 'https://openload.co/stream/%s?mime=true' % decoded_id