Update baiduyun_task.py

pull/3/head
zanllp 2023-03-23 10:13:20 +08:00 committed by GitHub
parent 74b574659b
commit 9fdc897bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ class BaiduyunTask:
"--saveto",
parse_and_replace_time(recv_dir),
"-p",
str(os.cpu_count() or 4),
"4",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
@ -167,4 +167,4 @@ def parse_and_replace_time(s):
for match in matches:
formatted_time = datetime.datetime.now().strftime(match)
s = s.replace(f'<#{match}#>', formatted_time)
return s
return s