Add mime type for .shn files.
This commit is contained in:
parent
9c1f980a19
commit
448eb7c720
|
@ -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-dms', '.dms', strict=False)
|
||||||
mimedb.add_type('application/x-zip-compressed', '.crx', 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-ape', '.ape', strict=False)
|
||||||
|
mimedb.add_type('audio/x-shn', '.shn', strict=False)
|
||||||
|
|
||||||
|
|
||||||
class PatoolError (StandardError):
|
class PatoolError (StandardError):
|
||||||
|
|
Binary file not shown.
|
@ -118,6 +118,9 @@ class TestMime (unittest.TestCase):
|
||||||
self.mime_test_file("t.dms.foo", "application/x-dms", None)
|
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", "audio/x-ape", None)
|
||||||
self.mime_test_file("t.ape.foo", "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('file')
|
||||||
@needs_program('lzip')
|
@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.zoo", "application/x-zoo", None)
|
||||||
self.mime_test_mimedb("t.dms", "application/x-dms", 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.ape", "audio/x-ape", None)
|
||||||
|
self.mime_test_mimedb("t.shn", "audio/x-shn", None)
|
||||||
|
|
Loading…
Reference in New Issue