Skip to content

Commit e469bd8

Browse files
committed
YouTubeLiveの絵文字を棒読みちゃんに読ませる際の挙動を以前の実装に近づけたつもり
Tiwtterで絵文字を読まなくなったという報告があったため対応した
1 parent 424c11f commit e469bd8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

BouyomiPlugin/main.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public static string ToTextWithImageAlt(this IEnumerable<IMessagePart> parts)
4040
{
4141
s += image.Alt;
4242
}
43+
else if(part is IMessageRemoteSvg remoteSvg)
44+
{
45+
s += remoteSvg.Alt;
46+
}
47+
else
48+
{
49+
50+
}
4351
}
4452
}
4553
return s;

YouTubeLiveSitePlugin/Message.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static IMessagePart Parse(ryu_s.YouTubeLive.Message.IMessagePart a)
163163
return new Common.MessageSvgImage
164164
{
165165
Url = emoji.Url,
166-
Alt = "",
166+
Alt = emoji.EmojiId,
167167
Height = 24,
168168
Width = 24,
169169
};

0 commit comments

Comments
 (0)