Skip to content

Commit

Permalink
fix(video_ext): 🐛 修复文件名后缀配置不生效问题 (#651)
Browse files Browse the repository at this point in the history
Co-authored-by: tabris <tabrisdong@gmail.com>
  • Loading branch information
tabris233 and tabris committed Apr 13, 2023
1 parent 449f368 commit a3af250
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func IsWantedVideoExtDef(fileName string) bool {
_wantedExtMap[common.VideoExtIso] = common.VideoExtIso
_wantedExtMap[common.VideoExtM2ts] = common.VideoExtM2ts

for _, videoExt := range _customVideoExts {
for _, videoExt := range settings.Get().AdvancedSettings.CustomVideoExts {
_wantedExtMap[videoExt] = videoExt
}
}
Expand Down Expand Up @@ -732,5 +732,4 @@ func GetMaxSizeFile(path string) string {
var (
_wantedExtMap = make(map[string]string) // 人工确认的需要监控的视频后缀名
_defExtMap = make(map[string]string) // 内置支持的视频后缀名列表
_customVideoExts = make([]string, 0) // 用户额外自定义的视频后缀名列表
)

0 comments on commit a3af250

Please sign in to comment.