Ignore m3u files when scanning

This commit is contained in:
Deluan 2020-07-03 21:06:33 -04:00
parent 1cc03fdd8c
commit 17830d63b4
4 changed files with 15 additions and 1 deletions

View file

@ -20,6 +20,14 @@ var _ = Describe("Files", func() {
It("returns false for a non-audio file", func() {
Expect(IsAudioFile("test.jpg")).To(BeFalse())
})
It("returns false for m3u files", func() {
Expect(IsAudioFile("test.m3u")).To(BeFalse())
})
It("returns false for pls files", func() {
Expect(IsAudioFile("test.pls")).To(BeFalse())
})
})
Describe("IsImageFile", func() {