mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[openload] Fix extraction (closes #15166)
This commit is contained in:
parent
75ba0efb52
commit
de329f64ab
|
@ -1,6 +1,7 @@
|
||||||
version <unreleased>
|
version <unreleased>
|
||||||
|
|
||||||
Extractors
|
Extractors
|
||||||
|
* [openload] Fix extraction (#15166)
|
||||||
* [rtve.es:alacarta] Fix extraction of some new URLs
|
* [rtve.es:alacarta] Fix extraction of some new URLs
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -333,7 +333,11 @@ class OpenloadIE(InfoExtractor):
|
||||||
webpage, _ = phantom.get(page_url, html=webpage, video_id=video_id, headers=headers)
|
webpage, _ = phantom.get(page_url, html=webpage, video_id=video_id, headers=headers)
|
||||||
|
|
||||||
decoded_id = (get_element_by_id('streamurl', webpage) or
|
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
|
video_url = 'https://openload.co/stream/%s?mime=true' % decoded_id
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue