simplemagic icon indicating copy to clipboard operation
simplemagic copied to clipboard

Bug: audio OGG (OGA) is detected as OGX instead

Open AndroidDeveloperLB opened this issue 1 year ago • 0 comments

The mimetype I get is "application/ogg" instead of "audio/ogg".

Code:

val util = ContentInfoUtil()
val info = util.findMatch(inputStream)
val extension = info?.mimeType?.let { mimeType ->
  MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType)?.let { result ->
     return result
     }
  }

Attached sample file.

Your New Adventure.zip

AndroidDeveloperLB avatar Jul 10 '24 15:07 AndroidDeveloperLB