Skip to content

Commit

Permalink
move back to curlcffi module
Browse files Browse the repository at this point in the history
  • Loading branch information
coletdjnz committed Mar 17, 2024
1 parent 2d2d674 commit 2a3bc46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions yt_dlp/dependencies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@

try:
import curl_cffi
if curl_cffi.__version__ != '0.5.10':
curl_cffi._yt_dlp__version = f'{curl_cffi.__version__} (unsupported)'
except ImportError:
curl_cffi = None

Expand Down
1 change: 1 addition & 0 deletions yt_dlp/networking/_curlcffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
curl_cffi_version = tuple(int_or_none(x, default=0) for x in curl_cffi.__version__.split('.'))

if curl_cffi_version != (0, 5, 10):
curl_cffi._yt_dlp__version = f'{curl_cffi.__version__} (unsupported)'
raise ImportError('Only curl_cffi 0.5.10 is supported')

import curl_cffi.requests
Expand Down

0 comments on commit 2a3bc46

Please sign in to comment.