fix feat_type bug

pull/2098/head
YangZhou 3 years ago
parent a0d1888c0d
commit 055af63df3

@ -93,7 +93,7 @@ def feat_type(filepath):
if isinstance(filepath, BytesIO): if isinstance(filepath, BytesIO):
return 'sound' return 'sound'
suffix = filepath.split(":")[0].split('.')[-1].lower() suffix = filepath.split(":")[-1].split('.')[-1].lower()
if suffix == 'ark': if suffix == 'ark':
return 'mat' return 'mat'
elif suffix == 'scp': elif suffix == 'scp':

Loading…
Cancel
Save