mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-22 08:20:54 +08:00
📦为快捷指令添加更新功能
This commit is contained in:
parent
5611d3b158
commit
255016ab1c
@ -2,7 +2,7 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
# @Author: https://github.com/Evil0ctal/
|
||||
# @Time: 2021/11/06
|
||||
# @Update: 2022/04/06
|
||||
# @Update: 2022/04/15
|
||||
# @Function:
|
||||
# 创建一个接受提交参数的Flask应用程序。
|
||||
# 将scraper.py返回的内容以JSON格式返回。
|
||||
@ -87,6 +87,15 @@ def webapi():
|
||||
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"])
|
||||
def download_video():
|
||||
# 用于返回视频下载请求(返回MP4文件下载请求,面对大量请求时非常吃服务器内存,容易崩,慎用。)
|
||||
|
Loading…
x
Reference in New Issue
Block a user