flame: fix multiple video files in list of repre files

This commit is contained in:
Jakub Jezek 2022-03-14 11:51:54 +01:00
parent a6fb84f3e1
commit 8adc26c278
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -218,9 +218,16 @@ class ExtractSubsetResources(openpype.api.Extractor):
# imagesequence as list
if (
# first check if path in files is not mov extension
next([
f for f in files if ".mov" in os.path.splitext(f)[-1]
], None)
next(
# iter all paths in files
# return only .mov positive test
iter([
f for f in files
if ".mov" in os.path.splitext(f)[-1]
]),
# if nothing return default
None
)
# then try if thumbnail is not in unique name
or unique_name == "thumbnail"
):