From 352c2eb73b1a0a630cbd66d4f1392de99eb38cb4 Mon Sep 17 00:00:00 2001 From: joyfuI Date: Wed, 4 Mar 2020 11:51:09 +0900 Subject: [PATCH] =?UTF-8?q?v1.2.4=20API=20Key=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ info.json | 2 +- plugin.py | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0648d77..1e21b93 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,9 @@ SJVA에서 "시스템 → 플러그인 → 플러그인 수동 설치" 칸에 물론 해당 정보가 없으면 null입니다. ## Changelog +v1.2.4 +* API Key 기능 추가 + v1.2.3 * 저장 경로가 존재하지 않으면 생성하도록 개선 diff --git a/info.json b/info.json index 7d02ebb..685d4e6 100644 --- a/info.json +++ b/info.json @@ -1 +1 @@ -{"description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "name": "youtube-dl", "more": "", "version": "1.2.3", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"} \ No newline at end of file +{"description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "name": "youtube-dl", "more": "", "version": "1.2.4", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"} \ No newline at end of file diff --git a/plugin.py b/plugin.py index 28a05db..91fa499 100644 --- a/plugin.py +++ b/plugin.py @@ -10,7 +10,7 @@ from flask_login import login_required # sjva 공용 from framework.logger import get_logger -from framework import db, socketio +from framework import db, check_api, socketio from framework.util import Util # 로그 @@ -36,7 +36,7 @@ menu = { } plugin_info = { - 'version': '1.2.3', + 'version': '1.2.4', 'name': 'youtube-dl', 'category_name': 'vod', 'developer': 'joyfuI', @@ -129,6 +129,7 @@ def ajax(sub): ######################################################### # API 명세는 https://github.com/joyfuI/youtube-dl#api @blueprint.route('/api/', methods=['GET', 'POST']) +@check_api def api(sub): plugin = request.form.get('plugin') logger.debug('API %s %s: %s', package_name, sub, plugin)