summaryrefslogtreecommitdiff
path: root/libmat2/audio.py
diff options
context:
space:
mode:
authorRomain Vigier2023-11-13 13:11:35 +0100
committerRomain Vigier2023-11-13 13:11:35 +0100
commit7405955ab5995b06c929148f0439670c9be7cb2d (patch)
tree4d3ada42d0d823c71c0d620080f74f417f6f29f0 /libmat2/audio.py
parente6564509e19e5b3bd5819fd9dca8f63d297cae74 (diff)
parsers: Inherit the sandbox option when creating additional parsers
Diffstat (limited to 'libmat2/audio.py')
-rw-r--r--libmat2/audio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmat2/audio.py b/libmat2/audio.py
index 13ed291..4e447c5 100644
--- a/libmat2/audio.py
+++ b/libmat2/audio.py
@@ -82,6 +82,7 @@ class FLACParser(MutagenParser):
82 with open(fname, 'wb') as f: 82 with open(fname, 'wb') as f:
83 f.write(picture.data) 83 f.write(picture.data)
84 p, _ = parser_factory.get_parser(fname) # type: ignore 84 p, _ = parser_factory.get_parser(fname) # type: ignore
85 p.sandbox = self.sandbox
85 # Mypy chokes on ternaries :/ 86 # Mypy chokes on ternaries :/
86 meta[name] = p.get_meta() if p else 'harmful data' # type: ignore 87 meta[name] = p.get_meta() if p else 'harmful data' # type: ignore
87 os.remove(fname) 88 os.remove(fname)