Skip to content

Commit

Permalink
fix: 修复了下载器并发限制不起作用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Jan 20, 2025
1 parent f0cc3a9 commit 64692b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f2/dl/base_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BaseDownloader(BaseCrawler):
def __init__(self, kwargs: dict = ...):
proxies = kwargs.get("proxies", {"http://": None, "https://": None})
self.headers = kwargs.get("headers") | {"Cookie": kwargs["cookie"]}
super().__init__(proxies=proxies, crawler_headers=self.headers)
super().__init__(kwargs, proxies=proxies, crawler_headers=self.headers)

self.progress = RichConsoleManager().progress
self.download_tasks = []
Expand Down

0 comments on commit 64692b4

Please sign in to comment.