diff --git a/web_app.py b/web_app.py index 9db5667..ff1cc0c 100644 --- a/web_app.py +++ b/web_app.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 -# @Update: 2022/10/02 +# @Update: 2022/10/17 # @Function: # 用于在线批量解析Douyin/TikTok的无水印视频/图集。 # 基于 PyWebIO、Flask, 将scraper.py返回的内容显示在网页上。 @@ -31,6 +31,7 @@ app_config.read('config.ini', encoding='utf-8') web_config = app_config['Web_ZH'] title = web_config['Web_Title'] description = web_config['Web_Description'] +keywords = web_config['Keywords'] api_config = app_config['Web_API'] api_url = api_config['URL'] headers = { @@ -98,7 +99,9 @@ def error_do(reason, function, value): [function, str(reason), value]]) put_markdown(t('可能的原因:', 'Possible reasons:')) put_markdown(t('服务器可能被目标主机的防火墙限流(稍等片刻后再次尝试)', 'The server may be limited by the target host firewall (try again after a while)')) - put_markdown(t('输入了错误的链接(暂不支持主页链接解析)', 'Entered the wrong link (the home page link is not supported for parsing)')) + put_markdown(t('输入了错误的链接(API-V1暂不支持主页链接解析)', 'Entered the wrong link (the home page link is not supported for parsing with API-V1)')) + put_markdown(t('如果需要解析个人主页,请使用API-V2', 'If you need to parse the personal homepage, please use API-V2')) + put_markdown(t('API-V2 文档: [https://api-v2.douyin.wtf/docs](https://api-v2.douyin.wtf/docs)', 'API-V2 Documentation: [https://api-v2.douyin.wtf/docs](https://api-v2.douyin.wtf/docs)')) put_markdown(t('该视频已经被删除或屏蔽(你看的都是些啥(⊙_⊙)?)', 'The video has been deleted or blocked (what are you watching (⊙_⊙)?)')) put_markdown(t('其他原因(请联系作者)', 'Other reasons (please contact the author)')) put_html("