Skip to content

Commit 7f71ab9

Browse files
authored
Merge pull request #65 from gmcgibbon/audio/ogg
Prefer audio/ogg instead of audio/vorbis
2 parents fc69a19 + fe9ca18 commit 7f71ab9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/marcel/mime_type/definitions.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
Marcel::MimeType.extend "application/vnd.apple.keynote", extensions: %w( key ), parents: "application/zip"
3232

3333
Marcel::MimeType.extend "audio/aac", extensions: %w( aac ), parents: "audio/x-aac"
34-
34+
Marcel::MimeType.extend("audio/ogg", extensions: %w( ogg oga ), magic: [[0, 'OggS', [[29, 'vorbis']]]])
3535

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

@@ -57,8 +57,8 @@
5757
"application/vnd.ms-access",
5858
extensions: %w( mdb mde accdb accde ),
5959
magic: [
60-
[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
61-
[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
60+
[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"
61+
[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"
6262
],
6363
parents: "application/x-msaccess"
6464
)

test/fixtures/magic/audio/ogg.ogg

16.3 KB
Binary file not shown.

test/fixtures/name/audio/ogg.ogg

16.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)