📦为快捷指令添加更新功能

This commit is contained in:
Evil0ctal 2022-04-15 23:29:00 -07:00 committed by GitHub
parent 5611d3b158
commit 255016ab1c
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/04/06 # @Update: 2022/04/15
# @Function: # @Function:
# 创建一个接受提交参数的Flask应用程序。 # 创建一个接受提交参数的Flask应用程序。
# 将scraper.py返回的内容以JSON格式返回。 # 将scraper.py返回的内容以JSON格式返回。
@ -87,6 +87,15 @@ def webapi():
return jsonify(status='failed', reason='url value cannot be empty', function='api()', value=content) return jsonify(status='failed', reason='url value cannot be empty', function='api()', value=content)
@app.route("/ios", methods=["POST", "GET"])
def ios_shortcut():
# 用于检查快捷指令更新
return jsonify(version='3.0',
update='2022/04/15',
link='https://www.icloud.com/shortcuts/126820d2783748d1bdec95a223a02639',
note='为快捷指令增加了检查更新的功能')
@app.route("/video", methods=["POST", "GET"]) @app.route("/video", methods=["POST", "GET"])
def download_video(): def download_video():
# 用于返回视频下载请求(返回MP4文件下载请求面对大量请求时非常吃服务器内存容易崩慎用。) # 用于返回视频下载请求(返回MP4文件下载请求面对大量请求时非常吃服务器内存容易崩慎用。)