mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 10:47:30 +01:00
[openload] Fix extraction (closes #15118)
This commit is contained in:
parent
2ca7ed41fe
commit
620ee8712e
@ -1,3 +1,9 @@
|
|||||||
|
version <unreleased>
|
||||||
|
|
||||||
|
Extractors
|
||||||
|
* [openload] Fix extraction (#15118)
|
||||||
|
|
||||||
|
|
||||||
version 2017.12.28
|
version 2017.12.28
|
||||||
|
|
||||||
Extractors
|
Extractors
|
||||||
|
@ -332,7 +332,8 @@ def _real_extract(self, url):
|
|||||||
phantom = PhantomJSwrapper(self, required_version='2.0')
|
phantom = PhantomJSwrapper(self, required_version='2.0')
|
||||||
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)
|
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
|
video_url = 'https://openload.co/stream/%s?mime=true' % decoded_id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user