Skip to content

Commit 48154f7

Browse files
define mime in VXN class
1 parent aa1dffa commit 48154f7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vxn/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def register_filetypes():
1111
from filetype import filetype
1212

1313
class VXNType(filetype.Type):
14-
MIME = 'audio/x-vxn'
15-
EXTENSION = 'vxn'
14+
MIME = VXN.MIME
15+
EXTENSION = VXN.EXTENSION
1616

1717
def __init__(self):
1818
super().__init__(

vxn/vxn.py

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class SegmStream():
3535
class VXN():
3636
EXTENSION = 'vxn'
3737
MAGIC = b'VoxN'
38+
MIME = 'audio/x-vxn'
3839

3940
def __init__(self, file: str | bytes | bytearray | BinaryIO | None = None) -> None:
4041
self.header = Header()

0 commit comments

Comments
 (0)