]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[openload] Fix extraction (closes #15166)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 4 Jan 2018 05:26:08 +0000 (13:26 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 4 Jan 2018 05:26:08 +0000 (13:26 +0800)
ChangeLog
youtube_dl/extractor/openload.py

index 3e6afca924a8a3cc78e3e432584aad918d89fccf..94b27b6a17b0af68935d04f843a0d87456a71c17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 version <unreleased>
 
 Extractors
+* [openload] Fix extraction (#15166)
 * [rtve.es:alacarta] Fix extraction of some new URLs
 
 
index b282bcfd9d2abc950c4a0e24fe808adfbf1a0e41..eaaaf8a081782ae597f2ed6a376c09fca6fbf5e5 100644 (file)
@@ -333,7 +333,11 @@ class OpenloadIE(InfoExtractor):
         webpage, _ = phantom.get(page_url, html=webpage, video_id=video_id, headers=headers)
 
         decoded_id = (get_element_by_id('streamurl', webpage) or
-                      get_element_by_id('streamuri', webpage))
+                      get_element_by_id('streamuri', webpage) or
+                      get_element_by_id('streamurj', webpage))
+
+        if not decoded_id:
+            raise ExtractorError('Can\'t find stream URL', video_id=video_id)
 
         video_url = 'https://openload.co/stream/%s?mime=true' % decoded_id