]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[openload] Fix extraction (closes #15118)
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 30 Dec 2017 07:03:13 +0000 (15:03 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 30 Dec 2017 07:03:13 +0000 (15:03 +0800)
ChangeLog
youtube_dl/extractor/openload.py

index 4323cfc5cac41689d11a20697252e539c85c3f86..08aed1ba7723991d3c1c1367841e89c704b6a1e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
+* [openload] Fix extraction (#15118)
+
+
 version 2017.12.28
 
 Extractors
index 81c1317b60a0efe2b30adee3811fb7d363c578b0..b282bcfd9d2abc950c4a0e24fe808adfbf1a0e41 100644 (file)
@@ -332,7 +332,8 @@ class OpenloadIE(InfoExtractor):
         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