From 2eac016910411e5d68017d6dc764b0e1c4b95aa9 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Mon, 31 Jan 2022 22:42:59 -0800 Subject: [PATCH] =?UTF-8?q?#3=20=E4=BF=AE=E5=A4=8DTikTok=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TikTok_ZH.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/TikTok_ZH.py b/TikTok_ZH.py index 1ab0dbd653..1e58da0124 100644 --- a/TikTok_ZH.py +++ b/TikTok_ZH.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/01/01 +# @Update: 2022/01/31 # @Function: # 基于 PyWebIO、Requests、Flask,可实现在线批量解析抖音的无水印视频/图集。 # 可用于下载作者禁止下载的视频,同时可搭配iOS的快捷指令APP配合本项目API实现应用内下载。 @@ -81,12 +81,11 @@ def error_do(e, func_name): def loading(url_lists): # 写一个进度条装装样子吧 :) - total_len = len(url_lists) set_scope('bar', position=3) with use_scope('bar'): put_processbar('bar') - for i in range(1, total_len): - set_processbar('bar', i / (total_len - 1)) + for i in range(1, 4): + set_processbar('bar', i / 3) time.sleep(0.1)