From a1b9ba01922cffb6777d701bd9f5b8f142a1a860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Wed, 25 Oct 2023 16:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E9=AA=8C=E6=80=A7=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=B8=A6=E5=9B=BE=E7=89=8C=E5=A0=86=E8=B5=84=E6=BA=90=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deck/AmberKeter/classic/__index.json | 5 ++++- script/releaseDeck.py | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/deck/AmberKeter/classic/__index.json b/deck/AmberKeter/classic/__index.json index b3f2af2..5c4ad7c 100644 --- a/deck/AmberKeter/classic/__index.json +++ b/deck/AmberKeter/classic/__index.json @@ -11,7 +11,10 @@ "version": "1", "version_code": 1, "desc": "包含密教模拟器中的共度余生结局分支与漫宿太阳报中的浓情蜜意的时节征文活动稿件。本牌堆数据来源于密教模拟器中文wiki与漫宿太阳报(QQ群号594585374)。", - "author": "AmberKeter" + "author": "AmberKeter", + "resource": [ + "浓情蜜意的时节-带图版.zip" + ] }, "浓情蜜意的时节.json": { "name": "浓情蜜意的时节", diff --git a/script/releaseDeck.py b/script/releaseDeck.py index 4475f04..58bb93a 100644 --- a/script/releaseDeck.py +++ b/script/releaseDeck.py @@ -70,7 +70,11 @@ def formatUTF8WithBOM(data:bytes): 'path': file_dir_path_real + deck_name_this, 'author': meta_info_data.get(deck_name_this, {}).get('author', deck_user_this), 'type': 'deck', - 'sub_type': deck_type + 'sub_type': deck_type, + 'resource_link': [ + parse.quote(f'https://extiverse-1253866028.cos.ap-shanghai.myqcloud.com/deck/{deck_user_this}/resource/{deck_resource_this}') + for deck_resource_this in meta_info_data.get(deck_name_this, {}).get('resource', []) + ] } if 'yaml' == deck_type: pass