diff --git a/README.md b/README.md index 1b49a25..9da7bef 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,4 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - 订阅规则自动填充 2.5 - Emby元数据刷新 1.1 - Emby媒体标签 1.1 -- 热门媒体订阅 1.0 +- 热门媒体订阅 1.1 diff --git a/package.json b/package.json index 7d4aaac..698c904 100644 --- a/package.json +++ b/package.json @@ -407,11 +407,12 @@ "name": "热门媒体订阅", "description": "自定添加热门媒体到订阅。", "labels": "订阅", - "version": "1.0", + "version": "1.1", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/popular.png", "author": "thsrite", "level": 1, "history": { + "v1.1": "修正流行度校验", "v1.0": "自定添加热门媒体到订阅" } } diff --git a/plugins/popularsubscribe/__init__.py b/plugins/popularsubscribe/__init__.py index 6180ab8..a39fb09 100644 --- a/plugins/popularsubscribe/__init__.py +++ b/plugins/popularsubscribe/__init__.py @@ -22,7 +22,7 @@ class PopularSubscribe(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/popular.png" # 插件版本 - plugin_version = "1.0" + plugin_version = "1.1" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -108,6 +108,7 @@ class PopularSubscribe(_PluginBase): # 遍历热门订阅检查流行度是否达到要求 for sub in subscribes: + logger.info(f"热门订阅检查:{sub.get('name')} 流行度:{sub.get('count')}") if popular_cnt and sub.get("count") and int(popular_cnt) > int(sub.get("count")): continue media = MediaInfo() @@ -144,7 +145,7 @@ class PopularSubscribe(_PluginBase): doubanid=media.douban_id, exist_ok=True, username=settings.SUPERUSER) - logger.info(f'{media.title_year} 流行度 {sub.get("count")} 添加订阅') + logger.info(f'{media.title_year} 流行度:{sub.get("count")} 添加订阅') # 存储历史记录 history.append({