feat 插件API

This commit is contained in:
jxxghp
2023-09-08 15:38:32 +08:00
parent d1f9647a63
commit 678638e9f1
4 changed files with 16 additions and 6 deletions

View File

@ -28,11 +28,11 @@ class BrushFlow(_PluginBase):
# 插件名称
plugin_name = "站点刷流"
# 插件描述
plugin_desc = "自动托管刷流,将会默认提高对应站点的种子刷新频率。"
plugin_desc = "自动托管刷流,将会提高对应站点的访问频率。"
# 插件图标
plugin_icon = "fileupload.png"
plugin_icon = "brush.jpg"
# 主题色
plugin_color = "#EC5665"
plugin_color = "#FFD54E"
# 插件版本
plugin_version = "1.0"
# 插件作者
@ -1437,6 +1437,7 @@ class BrushFlow(_PluginBase):
else:
task_info[torrent_info.get("hash")]["downloaded"] = torrent_info.get("downloaded")
task_info[torrent_info.get("hash")]["uploaded"] = torrent_info.get("uploaded")
task_info[torrent_info.get("hash")]["ratio"] = torrent_info.get("ratio")
# 做种时间(小时)
if self._seed_time:
if torrent_info.get("seeding_time") >= float(self._seed_time) * 3600: