1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-02 00:03:00 +00:00

[cookies] Fix f29acc4a6e73a9dc091686d40951288acae5a46d

Authored by: bashonly
This commit is contained in:
bashonly 2025-08-21 22:13:45 -05:00
parent f29acc4a6e
commit 526410b4af
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -163,7 +163,6 @@ def _extract_firefox_cookies(profile, container, logger):
with tempfile.TemporaryDirectory(prefix='yt_dlp') as tmpdir:
cursor = _open_database_copy(cookie_database_path, tmpdir)
with contextlib.closing(cursor.connection):
cursor = _open_database_copy(cookie_database_path, tmpdir)
db_schema_version = cursor.execute('PRAGMA user_version;').fetchone()[0]
if db_schema_version > MAX_SUPPORTED_DB_SCHEMA_VERSION:
logger.warning(f'Possibly unsupported firefox cookies database version: {db_schema_version}')