mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 18:21:26 +01:00
Compare commits
No commits in common. "601ca34151f40c1b79578affe6a5822acc48a98e" and "c5d36421769c841ecd87c3077366ab132597d421" have entirely different histories.
601ca34151
...
c5d3642176
|
@ -308,7 +308,7 @@ def _extract_chrome_cookies(browser_name, profile, keyring, logger):
|
||||||
cursor = _open_database_copy(cookie_database_path, tmpdir)
|
cursor = _open_database_copy(cookie_database_path, tmpdir)
|
||||||
|
|
||||||
# meta_version is necessary to determine if we need to trim the hash prefix from the cookies
|
# meta_version is necessary to determine if we need to trim the hash prefix from the cookies
|
||||||
# Ref: https://chromium.googlesource.com/chromium/src/+/b02dcebd7cafab92770734dc2bc317bd07f1d891/net/extras/sqlite/sqlite_persistent_cookie_store.cc#223
|
# Ref: https://github.com/yt-dlp/yt-dlp/issues/6564#issuecomment-2428437307
|
||||||
meta_version = int(cursor.execute('SELECT value FROM meta WHERE key = "version"').fetchone()[0])
|
meta_version = int(cursor.execute('SELECT value FROM meta WHERE key = "version"').fetchone()[0])
|
||||||
decryptor = get_cookie_decryptor(
|
decryptor = get_cookie_decryptor(
|
||||||
config['browser_dir'], config['keyring_name'], logger,
|
config['browser_dir'], config['keyring_name'], logger,
|
||||||
|
@ -456,9 +456,7 @@ class LinuxChromeCookieDecryptor(ChromeCookieDecryptor):
|
||||||
|
|
||||||
if version == b'v10':
|
if version == b'v10':
|
||||||
self._cookie_counts['v10'] += 1
|
self._cookie_counts['v10'] += 1
|
||||||
return _decrypt_aes_cbc_multi(
|
return _decrypt_aes_cbc_multi(ciphertext, (self._v10_key, self._empty_key), self._logger)
|
||||||
ciphertext, (self._v10_key, self._empty_key), self._logger,
|
|
||||||
hash_prefix=self._meta_version >= 24)
|
|
||||||
|
|
||||||
elif version == b'v11':
|
elif version == b'v11':
|
||||||
self._cookie_counts['v11'] += 1
|
self._cookie_counts['v11'] += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user