Skip to content

Commit

Permalink
fix(taglib): support lower case filenames again
Browse files Browse the repository at this point in the history
fixes #491
  • Loading branch information
sentriz committed Apr 4, 2024
1 parent 99233ec commit 8a0fa05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tags/taglib/taglib.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type TagLib struct{}

func (TagLib) CanRead(absPath string) bool {
switch ext := filepath.Ext(absPath); ext {
switch ext := strings.ToLower(filepath.Ext(absPath)); ext {
case ".mp3", ".flac", ".aac", ".m4a", ".m4b", ".ogg", ".opus", ".wma", ".wav", ".wv":
return true
}
Expand Down

0 comments on commit 8a0fa05

Please sign in to comment.