mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Merge fb16388260
into 05c8023a27
This commit is contained in:
commit
c2db95c032
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ def _extract_firefox_cookies(profile, container, logger):
|
|||
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'user-context-(.+)', context['l10nId']).group())
|
||||
)), None)
|
||||
if not isinstance(container_id, int):
|
||||
raise ValueError(f'could not find firefox container "{container}" in containers.json')
|
||||
|
|
Loading…
Reference in a new issue