Skip to content

Commit

Permalink
Only support curl_cffi 0.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
coletdjnz committed Mar 15, 2024
1 parent 9a90320 commit d2ecc83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies = [

[project.optional-dependencies]
default = []
curl_cffi = ["curl-cffi>=0.5.10,<0.6.0; implementation_name=='cpython'"]
curl_cffi = ["curl-cffi==0.5.10; implementation_name=='cpython'"]
secretstorage = [
"cffi",
"secretstorage",
Expand Down
4 changes: 2 additions & 2 deletions yt_dlp/networking/_curlcffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

curl_cffi_version = tuple(int_or_none(x, default=0) for x in curl_cffi.__version__.split('.'))

if curl_cffi_version < (0, 5, 10):
raise ImportError('Only curl_cffi>=0.5.10 is supported')
if curl_cffi_version != (0, 5, 10):
raise ImportError('Only curl_cffi 0.5.10 is supported')

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

0 comments on commit d2ecc83

Please sign in to comment.