mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix 添加订阅成功消息增加演员名称、简介
This commit is contained in:
@@ -233,6 +233,10 @@ class SubscribeChain(ChainBase, metaclass=Singleton):
|
|||||||
text = f"评分:{mediainfo.vote_average},来自用户:{username}"
|
text = f"评分:{mediainfo.vote_average},来自用户:{username}"
|
||||||
else:
|
else:
|
||||||
text = f"评分:{mediainfo.vote_average}"
|
text = f"评分:{mediainfo.vote_average}"
|
||||||
|
if mediainfo.actors:
|
||||||
|
text += f"\n演员:{'、 '.join([actor['name'] for actor in mediainfo.actors])}"
|
||||||
|
if mediainfo.overview:
|
||||||
|
text += f"\n简介:{mediainfo.overview}"
|
||||||
if mediainfo.type == MediaType.TV:
|
if mediainfo.type == MediaType.TV:
|
||||||
link = settings.MP_DOMAIN('#/subscribe/tv?tab=mysub')
|
link = settings.MP_DOMAIN('#/subscribe/tv?tab=mysub')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user