Update openpype/hosts/flame/plugins/publish/extract_subset_resources.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2022-03-16 16:36:46 +01:00 committed by GitHub
parent f4ece8fd5e
commit 2563a7ce60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,16 +218,10 @@ class ExtractSubsetResources(openpype.api.Extractor):
# imagesequence as list
if (
# first check if path in files is not mov extension
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
)
[
f for f in files
if os.path.splitext(f)[-1] == ".mov"
]
# then try if thumbnail is not in unique name
or unique_name == "thumbnail"
):