Skip to content

Commit 217d639

Browse files
committed
多媒体音频判断
1 parent 209e95c commit 217d639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/StaticController.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (this *StaticController) isMedia(path string) (yes bool) {
111111
var videoOK, audioOK bool
112112
ext := strings.ToLower(filepath.Ext(path))
113113
_, videoOK = conf.VideoExt.Load(ext)
114-
_, audioOK = conf.VideoExt.Load(ext)
114+
_, audioOK = conf.AudioExt.Load(ext)
115115
return audioOK || videoOK
116116
}
117117

0 commit comments

Comments
 (0)