mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-30 20:34:40 +01:00
[cookies] Update regex for Firefox containers JSON version 4
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
624451ffae
commit
f027c601b0
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ def _extract_firefox_cookies(profile, container, logger):
|
|||
identities = json.load(containers).get('identities', [])
|
||||
container_id = next((context.get('userContextId') for context in identities if container in (
|
||||
context.get('name'),
|
||||
try_call(lambda: re.fullmatch(r'userContext([^\.]+)\.label', context['l10nID']).group()),
|
||||
try_call(lambda: re.fullmatch(r'userContext([^.]+)\.label', context['l10nID']).group()),
|
||||
try_call(lambda: re.fullmatch(r'user-context-(.+)', context['l10nId']).group())
|
||||
)), None)
|
||||
if not isinstance(container_id, int):
|
||||
|
|
Loading…
Add table
Reference in a new issue