This commit is contained in:
Qi-rui Chen 2020-09-25 13:44:32 +02:00 committed by GitHub
commit 1f90ac2fc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -294,11 +294,17 @@ class MediasiteCatalogIE(InfoExtractor):
r'AntiForgeryHeaderName\s*:\s*(["\'])(?P<value>(?:(?!\1).)+)\1',
webpage, 'anti forgery header name',
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 = {
'IsViewPage': True,
'IsNewFolder': True,
'AuthTicket': None,
'AuthTicket': auth_ticket,
'CatalogId': catalog_id,
'CurrentFolderId': current_folder_id,
'RootDynamicFolderId': root_dynamic_folder_id,