parent
f5d97823e8
commit
7c92a73208
3 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
2
tests/fixtures/playlists/subfolder1/.hidden_playlist1.m3u
vendored
Normal file
2
tests/fixtures/playlists/subfolder1/.hidden_playlist1.m3u
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
test.mp3
|
||||
test.ogg
|
||||
2
tests/fixtures/playlists/subfolder2/.hidden_playlist2.m3u
vendored
Normal file
2
tests/fixtures/playlists/subfolder2/.hidden_playlist2.m3u
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
test.mp3
|
||||
test.ogg
|
||||
Loading…
Reference in a new issue