Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

推送动态有多余的换行符 #91

Open
kokorousaki opened this issue Jul 20, 2022 · 12 comments
Open

推送动态有多余的换行符 #91

kokorousaki opened this issue Jul 20, 2022 · 12 comments

Comments

@kokorousaki
Copy link

版本:1.6.1
image
image
有时会显示多余的空格来

@kokorousaki
Copy link
Author

未使用selenium

@cssxsh
Copy link
Owner

cssxsh commented Jul 20, 2022

你不觉得缺个测试的例子吗

@kokorousaki
Copy link
Author

你不觉得缺个测试的例子吗

跑的ubuntu20 server环境,jdk11,mirai2.12,就这个订阅插件和一个聊天插件没其他的了,这个问题好像从1.2x版本就有的
我看了一下记录,单图片出现的概率比较大,也有不出现的,多图片的动态也有出现空格的情况,随机触发吧

@cssxsh
Copy link
Owner

cssxsh commented Jul 21, 2022

你不觉得缺个测试的例子吗

跑的ubuntu20 server环境,jdk11,mirai2.12,就这个订阅插件和一个聊天插件没其他的了,这个问题好像从1.2x版本就有的 我看了一下记录,单图片出现的概率比较大,也有不出现的,多图片的动态也有出现空格的情况,随机触发吧

把推送的 b站动态url 给一下不就能作为例子了吗

@cssxsh
Copy link
Owner

cssxsh commented Jul 28, 2022

https://t.bilibili.com/687144988703719445 https://t.bilibili.com/687138941642473481 https://t.bilibili.com/687128977069834243 https://t.bilibili.com/687125725779591232 这几条都是下边有空白的

没复现出来,你检查一下你的模板文件是不是有空白

@kokorousaki
Copy link
Author

image
image
image
image
image
image
截了几个应该改过的,不过之前默认没动也是有空白行,会不会跟操作系统有关? 下次截个运行日志的输出吧

@kokorousaki
Copy link
Author

kokorousaki commented Aug 8, 2022

image
这里好像多了很多个n
image

@kokorousaki
Copy link
Author

kokorousaki commented Aug 8, 2022

image
image
这个是正常的日志,只有一个换行n

@cssxsh cssxsh changed the title 推送动态的图片错误 推送动态有多余的换行符 Aug 16, 2022
@cssxsh
Copy link
Owner

cssxsh commented Aug 16, 2022

如果 mirai-console 已经启动,修改模板之后需要用 指令 /bili-template reload 重新加载

@cssxsh
Copy link
Owner

cssxsh commented Aug 16, 2022

https://t.bilibili.com/691947595605475353 是动态的同时也包含 视频,动态模板和视频模板都检查一下

@kokorousaki
Copy link
Author

找到原因了,我把VideoStatus.template里边三行去除了
所以推送视频的时候就没显示这三行,变成空白行,写死了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants