Skip to content

Commit

Permalink
yt_dlp: b397a64691421ace5df09457c2a764821a2dc6f2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 25, 2024
1 parent 07d0f60 commit b1fa231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/yt_dlp/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,9 @@ class DATA_BLOB(ctypes.Structure):
ctypes.byref(blob_out), # pDataOut
)
if not ret:
logger.warning('failed to decrypt with DPAPI', only_once=True)
return None
message = 'Failed to decrypt with DPAPI. See https://github.com/yt-dlp/yt-dlp/issues/10927 for more info'
logger.error(message)
raise DownloadError(message) # force exit

result = ctypes.string_at(blob_out.pbData, blob_out.cbData)
ctypes.windll.kernel32.LocalFree(blob_out.pbData)
Expand Down
4 changes: 2 additions & 2 deletions lib/yt_dlp/networking/_curlcffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

curl_cffi_version = tuple(map(int, re.split(r'[^\d]+', curl_cffi.__version__)[:3]))

if curl_cffi_version != (0, 5, 10) and not ((0, 7, 0) <= curl_cffi_version < (0, 8, 0)):
if curl_cffi_version != (0, 5, 10) and not ((0, 7, 0) <= curl_cffi_version < (0, 7, 2)):
curl_cffi._yt_dlp__version = f'{curl_cffi.__version__} (unsupported)'
raise ImportError('Only curl_cffi versions 0.5.10, 0.7.X are supported')
raise ImportError('Only curl_cffi versions 0.5.10, 0.7.0 and 0.7.1 are supported')

import curl_cffi.requests
from curl_cffi.const import CurlECode, CurlOpt
Expand Down

0 comments on commit b1fa231

Please sign in to comment.