Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
a1a7c76d
Commit
a1a7c76d
authored
Dec 14, 2021
by
jvoisin
Browse files
Make mat2 more robust wrt. weird audio files
parent
01b39aa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
libmat2/audio.py
View file @
a1a7c76d
...
...
@@ -21,7 +21,7 @@ class MutagenParser(abstract.AbstractParser):
def
get_meta
(
self
)
->
Dict
[
str
,
Union
[
str
,
dict
]]:
f
=
mutagen
.
File
(
self
.
filename
)
if
f
.
tags
:
return
{
k
:
', '
.
join
(
v
)
for
k
,
v
in
f
.
tags
.
items
()}
return
{
k
:
', '
.
join
(
map
(
str
,
v
)
)
for
k
,
v
in
f
.
tags
.
items
()}
return
{}
def
remove_all
(
self
)
->
bool
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment