skip unsupported files

This commit is contained in:
2026-04-07 20:53:18 +02:00
parent fcba178b26
commit d9590651b2
2 changed files with 18 additions and 0 deletions

View File

@@ -9,6 +9,15 @@ import (
"strings"
)
func fileSupported(file string) bool {
supported := map[string]bool{
".mp3": true, ".flac": true,
".m4a": true, ".ogg": true, ".dsf": true,
}
return supported[strings.ToLower(filepath.Ext(file))]
}
func sortSong(src, dst string) error {
m, err := ReadAudioTags(src)
if err != nil {