Skip to content

Commit

Permalink
Merge pull request #65 from gmcgibbon/audio/ogg
Browse files Browse the repository at this point in the history
Prefer audio/ogg instead of audio/vorbis
  • Loading branch information
gmcgibbon authored Oct 16, 2021
2 parents fc69a19 + fe9ca18 commit 7f71ab9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/marcel/mime_type/definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Marcel::MimeType.extend "application/vnd.apple.keynote", extensions: %w( key ), parents: "application/zip"

Marcel::MimeType.extend "audio/aac", extensions: %w( aac ), parents: "audio/x-aac"

Marcel::MimeType.extend("audio/ogg", extensions: %w( ogg oga ), magic: [[0, 'OggS', [[29, 'vorbis']]]])

Marcel::MimeType.extend "image/vnd.dwg", magic: [[0, "AC10"]]

Expand All @@ -57,8 +57,8 @@
"application/vnd.ms-access",
extensions: %w( mdb mde accdb accde ),
magic: [
[0, "\x00\x01\x00\x00\x53\x74\x61\x6e\x64\x61\x72\x64\x20\x4a\x65\x74\x20\x44\x42"], # \x00\x01\x00\xStandard Jet DB
[0, "\x00\x01\x00\x00\x53\x74\x61\x6e\x64\x61\x72\x64\x20\x41\x43\x45\x20\x44\x42"], # \x00\x01\x00\xStandard ACE DB
[0, "\x00\x01\x00\x00\x53\x74\x61\x6e\x64\x61\x72\x64\x20\x4a\x65\x74\x20\x44\x42"], # "\x00\x01\x00Standard Jet DB"
[0, "\x00\x01\x00\x00\x53\x74\x61\x6e\x64\x61\x72\x64\x20\x41\x43\x45\x20\x44\x42"], # "\x00\x01\x00Standard ACE DB"
],
parents: "application/x-msaccess"
)
Expand Down
Binary file added test/fixtures/magic/audio/ogg.ogg
Binary file not shown.
Binary file added test/fixtures/name/audio/ogg.ogg
Binary file not shown.

0 comments on commit 7f71ab9

Please sign in to comment.