mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-14 10:30:35 +08:00
Merge pull request #520 from KuroiCc/fix/notification-content
fix: 🐛 通知的内容包含无意义的前导和尾随空格
This commit is contained in:
@@ -17,7 +17,7 @@ class BarkNotification(RequestContent):
|
||||
text = f"""
|
||||
番剧名称:{notify.official_title}\n季度: 第{notify.season}季\n更新集数: 第{notify.episode}集\n{notify.poster_path}\n
|
||||
"""
|
||||
return text
|
||||
return text.strip()
|
||||
|
||||
def post_msg(self, notify: Notification) -> bool:
|
||||
text = self.gen_message(notify)
|
||||
|
||||
@@ -18,7 +18,7 @@ class ServerChanNotification(RequestContent):
|
||||
text = f"""
|
||||
番剧名称:{notify.official_title}\n季度: 第{notify.season}季\n更新集数: 第{notify.episode}集\n{notify.poster_path}\n
|
||||
"""
|
||||
return text
|
||||
return text.strip()
|
||||
|
||||
def post_msg(self, notify: Notification) -> bool:
|
||||
text = self.gen_message(notify)
|
||||
|
||||
@@ -17,7 +17,7 @@ class SlackNotification(RequestContent):
|
||||
text = f"""
|
||||
番剧名称:{notify.official_title}\n季度: 第{notify.season}季\n更新集数: 第{notify.episode}集\n{notify.poster_path}\n
|
||||
"""
|
||||
return text
|
||||
return text.strip()
|
||||
|
||||
def post_msg(self, notify: Notification) -> bool:
|
||||
text = self.gen_message(notify)
|
||||
|
||||
@@ -18,7 +18,7 @@ class TelegramNotification(RequestContent):
|
||||
text = f"""
|
||||
番剧名称:{notify.official_title}\n季度: 第{notify.season}季\n更新集数: 第{notify.episode}集
|
||||
"""
|
||||
return text
|
||||
return text.strip()
|
||||
|
||||
def post_msg(self, notify: Notification) -> bool:
|
||||
text = self.gen_message(notify)
|
||||
|
||||
@@ -20,7 +20,7 @@ class WecomNotification(RequestContent):
|
||||
text = f"""
|
||||
番剧名称:{notify.official_title}\n季度: 第{notify.season}季\n更新集数: 第{notify.episode}集\n{notify.poster_path}\n
|
||||
"""
|
||||
return text
|
||||
return text.strip()
|
||||
|
||||
def post_msg(self, notify: Notification) -> bool:
|
||||
##Change message format to match Wecom push better
|
||||
|
||||
Reference in New Issue
Block a user