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 GitHub
parent f5d97823e8
commit 7c92a73208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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