mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-10-03 18:58:12 +08:00
修改--max_concurrency为--max_concurrency_num,保持命名一致
This commit is contained in:
+3
-3
@@ -258,10 +258,10 @@ async def parse_cmd(argv: Optional[Sequence[str]] = None):
|
|||||||
rich_help_panel="Comment Configuration",
|
rich_help_panel="Comment Configuration",
|
||||||
),
|
),
|
||||||
] = config.CRAWLER_MAX_COMMENTS_COUNT_SINGLENOTES,
|
] = config.CRAWLER_MAX_COMMENTS_COUNT_SINGLENOTES,
|
||||||
max_concurrency: Annotated[
|
max_concurrency_num: Annotated[
|
||||||
int,
|
int,
|
||||||
typer.Option(
|
typer.Option(
|
||||||
"--max_concurrency",
|
"--max_concurrency_num",
|
||||||
help="Maximum number of concurrent crawlers",
|
help="Maximum number of concurrent crawlers",
|
||||||
rich_help_panel="Performance Configuration",
|
rich_help_panel="Performance Configuration",
|
||||||
),
|
),
|
||||||
@@ -291,7 +291,7 @@ async def parse_cmd(argv: Optional[Sequence[str]] = None):
|
|||||||
config.SAVE_DATA_OPTION = save_data_option.value
|
config.SAVE_DATA_OPTION = save_data_option.value
|
||||||
config.COOKIES = cookies
|
config.COOKIES = cookies
|
||||||
config.CRAWLER_MAX_COMMENTS_COUNT_SINGLENOTES = max_comments_count_singlenotes
|
config.CRAWLER_MAX_COMMENTS_COUNT_SINGLENOTES = max_comments_count_singlenotes
|
||||||
config.MAX_CONCURRENCY_NUM = max_concurrency
|
config.MAX_CONCURRENCY_NUM = max_concurrency_num
|
||||||
|
|
||||||
# Set platform-specific ID lists for detail/creator mode
|
# Set platform-specific ID lists for detail/creator mode
|
||||||
if specified_id_list:
|
if specified_id_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user