Skip to content

Commit

Permalink
🦺减小下载线程池,兼容原版控制台 (有问题继续反馈)#395
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Apr 20, 2023
1 parent 2759206 commit a27d882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Util/Download.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def VideoDownload(self, profileData):
# self.v_info = profileData.v_info
# self.profile = Profile()
with Util.progress:
with Util.ThreadPoolExecutor(max_workers=10) as pool:
with Util.ThreadPoolExecutor(max_workers=5) as pool:
for i in range(len(self.author_list)):
# 获取单部视频接口信息
try:
Expand Down Expand Up @@ -160,7 +160,7 @@ def VideoDownload(self, profileData):

def ImageDownload(self, datas):
with Util.progress:
with Util.ThreadPoolExecutor(max_workers=10) as pool:
with Util.ThreadPoolExecutor(max_workers=5) as pool:
for i in range(len(datas)):
self.nickname = datas[i][0]
self.desc = Util.replaceT(datas[i][1])
Expand Down

0 comments on commit a27d882

Please sign in to comment.