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
143bb0a5
Commit
143bb0a5
authored
Dec 18, 2021
by
jvoisin
Browse files
Add a check for weird audio files, instead of crashing
parent
a1a7c76d
Changes
1
Hide whitespace changes
Inline
Side-by-side
libmat2/audio.py
View file @
143bb0a5
...
...
@@ -41,6 +41,9 @@ class MP3Parser(MutagenParser):
if
not
meta
:
return
metadata
for
key
in
meta
:
if
isinstance
(
key
,
tuple
):
metadata
[
key
[
0
]]
=
key
[
1
]
continue
if
not
hasattr
(
meta
[
key
],
'text'
):
# pragma: no cover
continue
metadata
[
key
.
rstrip
(
'
\t\r\n\0
'
)]
=
', '
.
join
(
map
(
str
,
meta
[
key
].
text
))
...
...
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