aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-12-30 15:03:13 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-12-30 15:03:13 +0800
commit620ee8712e264c71b444748c86a51b258818b4a1 (patch)
treed17f1765a18e6153190125999468ab898eb9d9e6 /youtube_dl
parent2ca7ed41fed73cf37581b07d0c67d3bad8a6acc3 (diff)
[openload] Fix extraction (closes #15118)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/openload.py3
1 files changed, 2 insertions, 1 deletions
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 @@ 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