diff options
author | Yen Chi Hsuan <[email protected]> | 2018-01-04 13:26:08 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2018-01-04 13:26:08 +0800 |
commit | de329f64abd920e148701436d6a20bfc5b2d3ef3 (patch) | |
tree | 70b5fc9dc1b8aaac7ad89014c92865fb5b923ac9 /youtube_dl | |
parent | 75ba0efb52c898601ef9febcba3e7a84ff2f311e (diff) | |
download | youtube-dl-de329f64abd920e148701436d6a20bfc5b2d3ef3.tar.gz youtube-dl-de329f64abd920e148701436d6a20bfc5b2d3ef3.zip |
[openload] Fix extraction (closes #15166)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/openload.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py index b282bcfd9..eaaaf8a08 100644 --- a/youtube_dl/extractor/openload.py +++ b/youtube_dl/extractor/openload.py @@ -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 |