Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
问题
通知的内容包含无意义的前导和尾随空格
现在通知信息内容生成的实现为
Auto_Bangumi/backend/src/module/notification/plugin/bark.py
Lines 16 to 20 in 0ef37f6
此实现会导致实际的推送信息为
"\n\s\s\s\s\s\s\s\s番剧名称:{notify.official_title}\n季度: 第{notify.season}季\n更新集数: 第{notify.episode}集\n{notify.poster_path}\n\n\s\s\s\s\s\s\s\s"
整个通知模块正在被重构(#513), 重构后可能就不会有这个问题, 但是作为临时的解决方案我提交了这个pr
测试
测试结果