From 3c2582c975485bf01c401214354fb9c01f900566 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Mon, 29 Aug 2022 15:57:15 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Change=20default=20download=20fi?= =?UTF-8?q?le=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_api.py b/web_api.py index 2f6cca1..7507637 100644 --- a/web_api.py +++ b/web_api.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/07/18 +# @Update: 2022/08/29 # @Function: # 创建一个接受提交参数的Flask应用程序。 # 将scraper.py返回的内容以JSON格式返回。 @@ -39,7 +39,7 @@ def clean_filename(string, author_name): # 将上述字符替换为下划线 new_title = re.sub(rstr, "_", string) # 新文件名 - filename = ('douyin.wtf_' + new_title + '_' + author_name).replace('\n', '') + filename = (new_title + '_' + author_name).replace('\n', '') return filename