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

【错误回报】部分群聊直播封面变网址了,私发的正常,且频繁出现 #409

Closed
hakureireimusama opened this issue Jul 1, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@hakureireimusama
Copy link

运行环境

Windows sever 2022

HarukaBot 版本

1.6.0post4

go-cqhttp 版本

1.1.0

错误描述

如图部分群聊直播封面变网址了,部分群聊是正常的,私发的也是正常的,且频繁出现
250047230-09a8e835-da42-4fc0-9737-27a43a9407de
250047240-6145f356-e4be-469b-ba12-5444940f8969
QQ截图20230701090955
QQ截图20230701091013

报错日志(如果有)

No response

@boxie123
Copy link
Contributor

boxie123 commented Jul 1, 2023

gocq日志有报错吗?

@fenixlin
Copy link

fenixlin commented Jul 1, 2023

情况一样,环境如下
gocq日志和hb日志都没有报错信息
而且非常神奇,我是同一位主播,同时通知两个群,没有at全体的群是正常的,有at全体的群就会封面无法正常显示

蹲一个后续
IID7PLI}Z A(AMR` J63%PS


运行环境
Windows sever 2016

HarukaBot 版本
1.6.0post4

go-cqhttp 版本
1.1.0

@hakureireimusama
Copy link
Author

情况一样,环境如下 gocq日志和hb日志都没有报错信息 而且非常神奇,我是同一位主播,同时通知两个群,没有at全体的群是正常的,有at全体的群就会封面无法正常显示

蹲一个后续 IID7PLI}Z A(AMR` J63%PS

运行环境 Windows sever 2016

HarukaBot 版本 1.6.0post4

go-cqhttp 版本 1.1.0

确实,测试了一下,把不at全体的群改成at全体,就变成网址了

@hakureireimusama
Copy link
Author

gocq日志有报错吗?

看了下没有报错

@boxie123
Copy link
Contributor

boxie123 commented Jul 2, 2023

非常神奇的bug,可以尝试一下:

haruka_bot/plugins/pusher/live_pusher.py中49-51行的

live_msg = (
    f"{name} 开播啦!\n分区:{room_area}\n标题:{title}\n{MessageSegment.image(cover)}\n{url}"
)

改成:

live_msg = (
    f"{name} 开播啦!\n分区:{room_area}\n标题:{title}\n" + MessageSegment.image(cover) + f"\n{url}"
)

@hakureireimusama
Copy link
Author

非常神奇的bug,可以尝试一下:

haruka_bot/plugins/pusher/live_pusher.py中49-51行的

live_msg = (
    f"{name} 开播啦!\n分区:{room_area}\n标题:{title}\n{MessageSegment.image(cover)}\n{url}"
)

改成:

live_msg = (
    f"{name} 开播啦!\n分区:{room_area}\n标题:{title}\n" + MessageSegment.image(cover) + f"\n{url}"
)

试了一下,好了3q

@SK-415 SK-415 added the bug Something isn't working label Jul 3, 2023
@djkcyl
Copy link
Collaborator

djkcyl commented Jul 4, 2023

dev分支已修复

@djkcyl djkcyl closed this as completed Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants