🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Add TAK support (#2745)
Andrew Katsikasb4815ecee58e
diff --git a/consts/mime_types.go b/consts/mime_types.goindex c05a08638..225e1857e 100644--- a/consts/mime_types.go+++ b/consts/mime_types.go@@ -33,6 +33,7 @@ var audioFormats = map[string]format{".dsf": {typ: "audio/dsd", lossless: true},".wv": {typ: "audio/x-wavpack", lossless: true},".wvp": {typ: "audio/x-wavpack", lossless: true},+ ".tak": {typ: "audio/tak", lossless: true},".mka": {typ: "audio/x-matroska"},}var imageFormats = map[string]string{diff --git a/scanner/tag_scanner_test.go b/scanner/tag_scanner_test.goindex 5629d2219..dc1e4575e 100644--- a/scanner/tag_scanner_test.go+++ b/scanner/tag_scanner_test.go@@ -10,11 +10,12 @@ var _ = Describe("TagScanner", func() {It("return all audio files from the folder", func() {files, err := loadAllAudioFiles("tests/fixtures")Expect(err).ToNot(HaveOccurred())- Expect(files).To(HaveLen(11))+ Expect(files).To(HaveLen(12))Expect(files).To(HaveKey("tests/fixtures/test.aiff"))Expect(files).To(HaveKey("tests/fixtures/test.flac"))Expect(files).To(HaveKey("tests/fixtures/test.m4a"))Expect(files).To(HaveKey("tests/fixtures/test.mp3"))+ Expect(files).To(HaveKey("tests/fixtures/test.tak"))Expect(files).To(HaveKey("tests/fixtures/test.ogg"))Expect(files).To(HaveKey("tests/fixtures/test.wav"))Expect(files).To(HaveKey("tests/fixtures/test.wma"))diff --git a/scanner/walk_dir_tree_test.go b/scanner/walk_dir_tree_test.goindex 45b0dff56..bfe94300d 100644--- a/scanner/walk_dir_tree_test.go+++ b/scanner/walk_dir_tree_test.go@@ -34,7 +34,7 @@ var _ = Describe("walk_dir_tree", func() {Expect(collected[baseDir]).To(MatchFields(IgnoreExtras, Fields{"Images": BeEmpty(),"HasPlaylist": BeFalse(),- "AudioFilesCount": BeNumerically("==", 12),+ "AudioFilesCount": BeNumerically("==", 13),}))Expect(collected[filepath.Join(baseDir, "artist", "an-album")]).To(MatchFields(IgnoreExtras, Fields{"Images": ConsistOf("cover.jpg", "front.png", "artist.png"),diff --git a/tests/fixtures/test.tak b/tests/fixtures/test.taknew file mode 100644index 000000000..4ed8bb843Binary files /dev/null and b/tests/fixtures/test.tak differ