global: extension needs to be checked before settings

This commit is contained in:
Jakub Jezek 2023-01-27 10:59:17 +01:00
parent 79d90e5048
commit d30b311e00
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -372,6 +372,12 @@ class ExtractorColormanaged(Extractor):
```
"""
ext = representation["ext"]
# check extension
self.log.debug("__ ext: `{}`".format(ext))
if ext.lower() not in self.allowed_ext:
return
if colorspace_settings is None:
colorspace_settings = self.get_colorspace_settings(context)
@ -386,12 +392,6 @@ class ExtractorColormanaged(Extractor):
self.log.info("Config data is : `{}`".format(
config_data))
ext = representation["ext"]
# check extension
self.log.debug("__ ext: `{}`".format(ext))
if ext.lower() not in self.allowed_ext:
return
project_name = context.data["projectName"]
host_name = context.data["hostName"]
project_settings = context.data["project_settings"]