From d77d836ae6a2cd692d7718ed72ac8e6bfe370092 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 13 Oct 2021 06:53:18 +0200 Subject: [PATCH] mimetype: added audio/ogg (#87) --- dlna/dms/mimetype.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlna/dms/mimetype.go b/dlna/dms/mimetype.go index 281e469..a895853 100644 --- a/dlna/dms/mimetype.go +++ b/dlna/dms/mimetype.go @@ -16,6 +16,9 @@ func init() { if err := mime.AddExtensionType(".ogv", "video/ogg"); err != nil { log.Printf("Could not register video/ogg MIME type: %s", err) } + if err := mime.AddExtensionType(".ogg", "audio/ogg"); err != nil { + log.Printf("Could not register audio/ogg MIME type: %s", err) + } } // Example: "video/mpeg"