Ignore playlists starting with a dot - #2367 (#2390)

This commit is contained in:
David Casado 2023-06-16 21:55:17 +02:00 committed by Joe Stump
parent ee1cc93375
commit 0f96a4f0bd
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9
3 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,9 @@ func (s *playlistImporter) processPlaylists(ctx context.Context, dir string) int
return count
}
for _, f := range files {
if strings.HasPrefix(f.Name(), ".") {
continue
}
if !model.IsValidPlaylist(f.Name()) {
continue
}

View File

@ -0,0 +1,2 @@
test.mp3
test.ogg

View File

@ -0,0 +1,2 @@
test.mp3
test.ogg