Add mime type for .shn files.

This commit is contained in:
Bastian Kleineidam 2012-05-17 14:11:36 +02:00
parent 9c1f980a19
commit 448eb7c720
3 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,7 @@ mimedb.add_type('application/x-zoo', '.zoo', strict=False)
mimedb.add_type('application/x-dms', '.dms', strict=False)
mimedb.add_type('application/x-zip-compressed', '.crx', strict=False)
mimedb.add_type('audio/x-ape', '.ape', strict=False)
mimedb.add_type('audio/x-shn', '.shn', strict=False)
class PatoolError (StandardError):

BIN
tests/data/t.shn Normal file

Binary file not shown.

View File

@ -118,6 +118,9 @@ class TestMime (unittest.TestCase):
self.mime_test_file("t.dms.foo", "application/x-dms", None)
self.mime_test_file("t.ape", "audio/x-ape", None)
self.mime_test_file("t.ape.foo", "audio/x-ape", None)
# file(1) does not recognize .shn files
#self.mime_test_file("t.shn", "audio/x-shn", None)
#self.mime_test_file("t.shn.foo", "audio/x-shn", None)
@needs_program('file')
@needs_program('lzip')
@ -186,3 +189,4 @@ class TestMime (unittest.TestCase):
self.mime_test_mimedb("t.zoo", "application/x-zoo", None)
self.mime_test_mimedb("t.dms", "application/x-dms", None)
self.mime_test_mimedb("t.ape", "audio/x-ape", None)
self.mime_test_mimedb("t.shn", "audio/x-shn", None)