From 8a0fa05c7cdcb98066c263fea72af0715864bea5 Mon Sep 17 00:00:00 2001 From: sentriz Date: Thu, 4 Apr 2024 10:04:58 +0100 Subject: [PATCH] fix(taglib): support lower case filenames again fixes #491 --- tags/taglib/taglib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags/taglib/taglib.go b/tags/taglib/taglib.go index d0f5f2d5..e8e0cce6 100644 --- a/tags/taglib/taglib.go +++ b/tags/taglib/taglib.go @@ -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 }