From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sat, 11 Feb 2023 14:02:57 +0000 (+0800) Subject: Fix 录播目录忽略可能导致panic的文件 X-Git-Tag: v0.6.2~22 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=9ad4f006bc5bff1405df13f7989db6345bb4fe8b;p=bili_danmu%2F.git Fix 录播目录忽略可能导致panic的文件 --- diff --git a/Reply/F.go b/Reply/F.go index 242805e..397aea0 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1148,7 +1148,7 @@ func init() { var filePaths []paf for i, n := 0, len(list); i < n; i++ { - if list[i].IsDir() { + if list[i].IsDir() && len(list[i].Name()) > 20 { filePaths = append(filePaths, paf{list[i].Name()[20:], list[i].Name()[:19], list[i].Name()}) } }