Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
fix: 去除冗余插件配置
Browse files Browse the repository at this point in the history
  • Loading branch information
aj.mdc.ng committed Mar 2, 2023
1 parent d3dd8de commit c5d5630
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
7 changes: 0 additions & 7 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ def init_config(web_config: dict):
proxies["http"] = proxy
proxies["https"] = proxy

if not config.has_section("watermark"):
config.add_section("watermark")

config["watermark"]["enabled"] = str(web_config.get("watermark")) or "0"
config["watermark"]["start"] = str(web_config.get("watermark_start")) or "0"
config["watermark"]["clockwise"] = str(web_config.get("watermark_clockwise")) or "0"

with open(config_path, "w") as cfg:
config.write(cfg)

Expand Down
18 changes: 0 additions & 18 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,6 @@
"fieldType": "String",
"label": "刮削整理目标路径",
"defaultValue": ""
},
{
"fieldName": "watermark",
"fieldType": "Bool",
"label": "图片添加水印(无码/字幕/破解/流出)",
"defaultValue": false
},
{
"fieldName": "watermark_start",
"fieldType": "String",
"label": "水印起始位置: 0左上, 1左下, 2右下, 3右上",
"defaultValue": "0"
},
{
"fieldName": "watermark_clockwise",
"fieldType": "String",
"label": "水印添加方向: 0逆时针, 1顺时针",
"defaultValue": "0"
}
]
}

0 comments on commit c5d5630

Please sign in to comment.