]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Improve Improve 兼容旧录播格式
authorqydysky <qydysky@foxmail.com>
Wed, 28 Jun 2023 06:20:13 +0000 (14:20 +0800)
committerqydysky <qydysky@foxmail.com>
Wed, 28 Jun 2023 06:20:13 +0000 (14:20 +0800)
Reply/F.go

index 43022bdf4cf1f14331a07a9f5db47858b85d0ebb..20b979cd9d9c795ec9517a66543f8b9d1e0b49a7 100644 (file)
@@ -1305,6 +1305,8 @@ func init() {
                                                        c.ResStruct{Code: -1, Message: e.Error(), Data: nil}.Write(w)
                                                        return
                                                } else {
+                                                       filePath.StartT = strings.ReplaceAll(filePath.StartT, "_", ":")
+                                                       filePath.StartT = strings.ReplaceAll(filePath.StartT, "-", " ")
                                                        filePaths = append(filePaths, filePath)
                                                }
                                        }