Merge branch 'v2' of https://github.com/jxxghp/MoviePilot into feature/subscribe

This commit is contained in:
InfinityPacer
2024-12-16 19:09:14 +08:00
2 changed files with 3 additions and 8 deletions

View File

@@ -518,16 +518,11 @@ class EventManager(metaclass=Singleton):
if isinstance(etype, list):
# 传入的已经是列表,直接使用
event_list = etype
elif etype is EventType:
# 订阅所有事件
event_list = []
for et in etype:
event_list.append(et)
else:
# 不是列表则包裹成单一元素的列表
event_list = [etype]
# 遍历列表,处理每个事件类型
# 遍历列表,处理每个事件类型
for event in event_list:
if isinstance(event, (EventType, ChainEventType)):
self.add_event_listener(event, f, priority)

View File

@@ -58,6 +58,6 @@ pystray~=0.19.5
pyotp~=2.9.0
Pinyin2Hanzi~=0.1.1
pywebpush~=2.0.0
python-115~=0.0.9.8.8.2
python-115~=0.0.9.8.8.3
aligo~=6.2.4
aiofiles~=24.1.0
aiofiles~=24.1.0