Skip to content

Commit

Permalink
Merge pull request #2638 from Linvery/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Aug 13, 2024
2 parents 3d459a4 + e2c9742 commit c9c43fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/chain/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ def add(self, title: str, year: str,
text = f"评分:{mediainfo.vote_average}"
# 群发
if mediainfo.type == MediaType.TV:
link = settings.MP_DOMAIN('#/subscribe-tv?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/tv?tab=mysub')
else:
link = settings.MP_DOMAIN('#/subscribe-movie?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/movie?tab=mysub')
self.post_message(Notification(mtype=NotificationType.Subscribe,
title=f"{mediainfo.title_year} {metainfo.season} 已添加订阅",
text=text,
Expand Down Expand Up @@ -922,9 +922,9 @@ def __finish_subscribe(self, subscribe: Subscribe, mediainfo: MediaInfo,
self.subscribeoper.delete(subscribe.id)
# 发送通知
if mediainfo.type == MediaType.TV:
link = settings.MP_DOMAIN('#/subscribe-tv?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/tv?tab=mysub')
else:
link = settings.MP_DOMAIN('#/subscribe-movie?tab=mysub')
link = settings.MP_DOMAIN('#/subscribe/movie?tab=mysub')
self.post_message(Notification(mtype=NotificationType.Subscribe,
title=f'{mediainfo.title_year} {meta.season} 已完成{msgstr}',
image=mediainfo.get_message_image(),
Expand Down

0 comments on commit c9c43fd

Please sign in to comment.