mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-26 13:53:45 +03:00
fix tests
This commit is contained in:
@@ -195,10 +195,12 @@ def _extract_firefox_cookies(browser_name, profile, container, logger):
|
||||
if cursor is not None:
|
||||
cursor.connection.close()
|
||||
|
||||
|
||||
@dataclass
|
||||
class _FirefoxBrowserSettings:
|
||||
browser_dirs: list[str]
|
||||
|
||||
|
||||
def _firefox_based_browser_settings(browser_name):
|
||||
if sys.platform in ('cygwin', 'win32'):
|
||||
appdata = os.path.expandvars(R'%APPDATA%')
|
||||
@@ -242,6 +244,7 @@ def _firefox_based_browser_settings(browser_name):
|
||||
browser_dirs=browser_dirs,
|
||||
)
|
||||
|
||||
|
||||
def _firefox_cookie_dbs(roots):
|
||||
for root in map(os.path.abspath, roots):
|
||||
for pattern in ('', '*/', 'Profiles/*/'):
|
||||
|
||||
Reference in New Issue
Block a user