mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-14 16:59:49 +02:00
self
Authored by: bashonly
This commit is contained in:
parent
bca1f530bc
commit
0c1448902e
@ -77,7 +77,7 @@ def _real_extract(self, url):
|
|||||||
r'var\s+dat\s*=\s*["\']', webpage, 'data', video_id, contains_pattern=r'[A-Za-z0-9+/=]+',
|
r'var\s+dat\s*=\s*["\']', webpage, 'data', video_id, contains_pattern=r'[A-Za-z0-9+/=]+',
|
||||||
end_pattern=r'["\'];', transform_source=lambda x: base64.b64decode(x).decode())
|
end_pattern=r'["\'];', transform_source=lambda x: base64.b64decode(x).decode())
|
||||||
|
|
||||||
query = SproutVideoIE._policy_to_qs(data, 'm')
|
query = self._policy_to_qs(data, 'm')
|
||||||
headers = {
|
headers = {
|
||||||
'Accept': '*/*',
|
'Accept': '*/*',
|
||||||
'Origin': 'https://videos.sproutvideo.com',
|
'Origin': 'https://videos.sproutvideo.com',
|
||||||
@ -93,8 +93,8 @@ def _real_extract(self, url):
|
|||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'extra_param_to_segment_url': SproutVideoIE._policy_to_qs(data, 't', as_string=True),
|
'extra_param_to_segment_url': self._policy_to_qs(data, 't', as_string=True),
|
||||||
'extra_param_to_key_url': SproutVideoIE._policy_to_qs(data, 'k', as_string=True),
|
'extra_param_to_key_url': self._policy_to_qs(data, 'k', as_string=True),
|
||||||
'http_headers': headers,
|
'http_headers': headers,
|
||||||
**traverse_obj(data, {
|
**traverse_obj(data, {
|
||||||
'title': ('title', {str}),
|
'title': ('title', {str}),
|
||||||
|
Loading…
Reference in New Issue
Block a user