From a67a1fd14b2ba7648aa5c051bedb5052215e87a9 Mon Sep 17 00:00:00 2001 From: luojianquan443 <2569646547@qq.com> Date: Mon, 1 Apr 2024 21:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DVCB=E5=8A=A8=E6=BC=AB?= =?UTF-8?q?=E5=8E=8B=E5=88=B6=E7=BB=84=E6=8F=92=E4=BB=B6=E7=9A=84=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E7=BC=BA=E5=B0=91=E5=88=A4=E6=96=AD=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E9=9B=86=E6=95=B0=E9=94=99=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/vcbanimemonitor/__init__.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/plugins/vcbanimemonitor/__init__.py b/plugins/vcbanimemonitor/__init__.py index 581bb35..c4fc5f1 100644 --- a/plugins/vcbanimemonitor/__init__.py +++ b/plugins/vcbanimemonitor/__init__.py @@ -393,15 +393,15 @@ class VCBAnimeMonitor(_PluginBase): if remeta.is_special and not self._switch_ova: logger.warn(f"{file_path.name} 为OVA资源,未开启OVA开关,不处理") return - else: - ova_history_ep = 1 + if remeta.is_special and self._switch_ova: + logger.info(f"{file_path.name} 为OVA资源,开始处理") if self.get_data(key=f"OVA_{file_meta.title}") is not None: - ova_history_ep = int(self.get_data(key=f"OVA_{file_meta.title}")) - self.save_data(key=f"OVA_{file_meta.title}", value=ova_history_ep + 1) - file_meta.begin_episode = ova_history_ep + 1 - else: + ova_history_ep = int(self.get_data(key=f"OVA_{file_meta.title}"))+1 file_meta.begin_episode = ova_history_ep - self.save_data(key=f"OVA_{file_meta.title}", value=ova_history_ep + 1) + self.save_data(key=f"OVA_{file_meta.title}", value=ova_history_ep) + else: + file_meta.begin_episode = 1 + self.save_data(key=f"OVA_{file_meta.title}", value=1) else: return @@ -1015,7 +1015,8 @@ class VCBAnimeMonitor(_PluginBase): 'props': { 'type': 'info', 'variant': 'tonal', - 'text': '核心用法与目录同步插件相同,不同点在于只识别处理VCB-Studio资源,\n' + 'text': '核心用法与目录同步插件相同,不同点在于只识别处理VCB-Studio资源,' + '避免与目录同步插件的监控目录相同(否则会同时进行识别)' '不处理SPs目录下的文件,OVA/OAD集数根据入库顺序累加命名,不保证与TMDB集数匹配' } }