mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-01 20:57:54 +01:00
[mediasite:catalog] Add AuthTicket to request data
This commit is contained in:
parent
68fa15155f
commit
c8d77fd5a0
@ -295,10 +295,16 @@ class MediasiteCatalogIE(InfoExtractor):
|
|||||||
webpage, 'anti forgery header name',
|
webpage, 'anti forgery header name',
|
||||||
default='X-SOFO-AntiForgeryHeader', group='value')
|
default='X-SOFO-AntiForgeryHeader', group='value')
|
||||||
|
|
||||||
|
# when AuthTicket: '' this finds no matches due to the + quantifier, returning None
|
||||||
|
# None is serialized to null which matches the request
|
||||||
|
auth_ticket = self._search_regex(
|
||||||
|
r'AuthTicket\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1',
|
||||||
|
webpage, 'auth ticket', default=None, group='value')
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'IsViewPage': True,
|
'IsViewPage': True,
|
||||||
'IsNewFolder': True,
|
'IsNewFolder': True,
|
||||||
'AuthTicket': None,
|
'AuthTicket': auth_ticket,
|
||||||
'CatalogId': catalog_id,
|
'CatalogId': catalog_id,
|
||||||
'CurrentFolderId': current_folder_id,
|
'CurrentFolderId': current_folder_id,
|
||||||
'RootDynamicFolderId': root_dynamic_folder_id,
|
'RootDynamicFolderId': root_dynamic_folder_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user