🏷修改配置文件错误

This commit is contained in:
Evil0ctal 2022-04-21 05:12:03 -07:00 committed by GitHub
parent 05f0a609de
commit 9d9a15f842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ def error_do(reason, function, value):
put_markdown('你可以在右上角的关于菜单中查看本站错误日志。') put_markdown('你可以在右上角的关于菜单中查看本站错误日志。')
put_markdown('[点击此处在GayHub上进行反馈](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)') put_markdown('[点击此处在GayHub上进行反馈](https://github.com/Evil0ctal/Douyin_TikTok_Download_API/issues)')
put_html("<hr>") put_html("<hr>")
if web_config['Allow_Logs']: if web_config['Allow_Logs'] == 'True':
# 将错误记录在logs.txt中 # 将错误记录在logs.txt中
error_date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) error_date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
with open('logs.txt', 'a') as f: with open('logs.txt', 'a') as f:
@ -463,7 +463,7 @@ def main():
put_text('总共收到' + str(total_urls) + '个链接') put_text('总共收到' + str(total_urls) + '个链接')
put_text('成功: ' + str(success_count) + ' ' + '失败: ' + str(failed_count)) put_text('成功: ' + str(success_count) + ' ' + '失败: ' + str(failed_count))
put_text('解析共耗时: %.4f' % (end - start)) put_text('解析共耗时: %.4f' % (end - start))
if web_config['Allow_Batch_Download']: if web_config['Allow_Batch_Download'] == 'True':
put_button("下载结果页中的所有视频", onclick=lambda: video_download_window(nwm_success_list)) put_button("下载结果页中的所有视频", onclick=lambda: video_download_window(nwm_success_list))
put_link('返回主页', '/') put_link('返回主页', '/')
time.sleep(300) time.sleep(300)