feat(tiktok): 单个作品使用多线程下载

This commit is contained in:
imgyh 2023-03-27 10:42:45 +08:00
parent 0fb3739b47
commit 38fc76826d

View File

@ -85,8 +85,10 @@ def main():
savePath=args.path, thread=args.thread)
elif key_type == "aweme":
datanew, dataraw = tk.getAwemeInfo(key)
tk.awemeDownload(awemeDict=datanew, music=args.music, cover=args.cover, avatar=args.avatar, resjson=args.json,
savePath=args.path, usingThread=False)
datalist = []
datalist.append(datanew)
tk.userDownload(awemeList=datalist, music=args.music, cover=args.cover, avatar=args.avatar, resjson=args.json,
savePath=args.path, thread=args.thread)
elif key_type == "live":
live_json = tk.getLiveInfo(key)
if args.json: