From 7405955ab5995b06c929148f0439670c9be7cb2d Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Mon, 13 Nov 2023 13:11:35 +0100 Subject: parsers: Inherit the sandbox option when creating additional parsers --- libmat2/audio.py | 1 + 1 file changed, 1 insertion(+) (limited to 'libmat2/audio.py') 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): with open(fname, 'wb') as f: f.write(picture.data) p, _ = parser_factory.get_parser(fname) # type: ignore + p.sandbox = self.sandbox # Mypy chokes on ternaries :/ meta[name] = p.get_meta() if p else 'harmful data' # type: ignore os.remove(fname) -- cgit v1.3