mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
fix bug
This commit is contained in:
@@ -296,7 +296,7 @@ class MessageChain(ChainBase):
|
|||||||
else:
|
else:
|
||||||
best_version = True
|
best_version = True
|
||||||
# 转换用户名
|
# 转换用户名
|
||||||
mp_name = self.useroper.get_name(**{f"{source}_userid": userid})
|
mp_name = self.useroper.get_name(**{f"{channel.name.lower()}_userid": userid}) if channel else None
|
||||||
# 添加订阅,状态为N
|
# 添加订阅,状态为N
|
||||||
self.subscribechain.add(title=mediainfo.title,
|
self.subscribechain.add(title=mediainfo.title,
|
||||||
year=mediainfo.year,
|
year=mediainfo.year,
|
||||||
@@ -508,7 +508,7 @@ class MessageChain(ChainBase):
|
|||||||
else:
|
else:
|
||||||
note = None
|
note = None
|
||||||
# 转换用户名
|
# 转换用户名
|
||||||
mp_name = self.useroper.get_name(**{f"{source}_userid": userid})
|
mp_name = self.useroper.get_name(**{f"{channel.name.lower()}_userid": userid}) if channel else None
|
||||||
# 添加订阅,状态为R
|
# 添加订阅,状态为R
|
||||||
self.subscribechain.add(title=_current_media.title,
|
self.subscribechain.add(title=_current_media.title,
|
||||||
year=_current_media.year,
|
year=_current_media.year,
|
||||||
|
|||||||
Reference in New Issue
Block a user