#3 修复TikTok解析失败的问题

This commit is contained in:
Evil0ctal 2022-01-31 22:42:59 -08:00 committed by GitHub
parent 0910e497b6
commit 2eac016910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
# @Author: https://github.com/Evil0ctal/ # @Author: https://github.com/Evil0ctal/
# @Time: 2021/11/06 # @Time: 2021/11/06
# @Update: 2022/01/01 # @Update: 2022/01/31
# @Function: # @Function:
# 基于 PyWebIO、Requests、Flask可实现在线批量解析抖音的无水印视频/图集。 # 基于 PyWebIO、Requests、Flask可实现在线批量解析抖音的无水印视频/图集。
# 可用于下载作者禁止下载的视频同时可搭配iOS的快捷指令APP配合本项目API实现应用内下载。 # 可用于下载作者禁止下载的视频同时可搭配iOS的快捷指令APP配合本项目API实现应用内下载。
@ -81,12 +81,11 @@ def error_do(e, func_name):
def loading(url_lists): def loading(url_lists):
# 写一个进度条装装样子吧 :) # 写一个进度条装装样子吧 :)
total_len = len(url_lists)
set_scope('bar', position=3) set_scope('bar', position=3)
with use_scope('bar'): with use_scope('bar'):
put_processbar('bar') put_processbar('bar')
for i in range(1, total_len): for i in range(1, 4):
set_processbar('bar', i / (total_len - 1)) set_processbar('bar', i / 3)
time.sleep(0.1) time.sleep(0.1)