]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Improve 更新说明
authorqydysky <qydysky@foxmail.com>
Sat, 20 Jul 2024 15:33:22 +0000 (23:33 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 20 Jul 2024 15:33:22 +0000 (23:33 +0800)
README.md
Reply/F/danmuEmotes/danmuEmotes.go
demo/emots/README.md [new file with mode: 0644]
demo/emots/[比心].png [deleted file]

index af889987ae57180dc19e94912fd9af8db6c7e633..5d57f90aed85ab3df95a7850a7d55d779efdcaa7 100644 (file)
--- a/README.md
+++ b/README.md
 ### 说明
 本项目使用github action自动构建,构建过程详见[yml](https://github.com/qydysky/bili_danmu/blob/master/.github/workflows/go.yml)
 
+#### 直播回放显示表情
+配置文件中添加配置项`弹幕表情`(>v0.14.9)。默认为true,当为true时,将会保存弹幕中的表情png到emots目录下,并在回放时显示表情。
+
+注意:需要配套更新`demo/html/artPlayer`下的资源
+
 #### 直播流停用服务器
 配置文件中添加配置项`直播流停用服务器`(>v0.14.3)。默认为空,编写正则字符串,当获取到的服务器链接与字符串匹配时,将会停用。
 
index 9f4cbcd8124dc4dcc97efa031afbb4694f1ebdde..afc3d44aa58a7b2c7f7c39ed500b9ea4c02d3668 100644 (file)
@@ -23,6 +23,10 @@ type Danmu struct {
        Msg  *string
 }
 
+func init() {
+       _, _ = file.New("emots/README.md", 0, true).Write([]byte(""), false)
+}
+
 func saveEmote(ctx context.Context, ptr Danmu) (ret any, err error) {
        if m, ok := ptr.Info[13].(map[string]any); ok {
                if url, ok := m[`url`].(string); ok {
diff --git a/demo/emots/README.md b/demo/emots/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/demo/emots/[比心].png b/demo/emots/[比心].png
deleted file mode 100644 (file)
index 0001f64..0000000
Binary files "a/demo/emots/[\346\257\224\345\277\203].png" and /dev/null differ