Fixed RemoteCDM, added curl_cffi to instance checks. (#18)

* Fix remoteCDM, add curl_cffi to instance check

* Update dash.py
This commit is contained in:
TPD94
2025-09-29 22:57:42 -04:00
committed by GitHub
parent e92e5c2ba3
commit ceea4ac827
2 changed files with 10 additions and 6 deletions

View File

@@ -253,8 +253,8 @@ class DASH:
):
if not session:
session = Session()
elif not isinstance(session, Session):
raise TypeError(f"Expected session to be a {Session}, not {session!r}")
elif not isinstance(session, (Session, CurlSession)):
raise TypeError(f"Expected session to be a {Session} or {CurlSession}, not {session!r}")
if proxy:
session.proxies.update({"all": proxy})