mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
flame: fix for single file use
This commit is contained in:
parent
ac16e1f8bb
commit
8a1f7c1006
1 changed files with 6 additions and 7 deletions
|
|
@ -839,14 +839,13 @@ class MediaInfoFile(object):
|
|||
# ignore reminders as we dont need them
|
||||
collections = clique.assemble(files)[0]
|
||||
|
||||
# if no collection rise
|
||||
# in case no collection found return None
|
||||
# it is probably just single file
|
||||
if not collections:
|
||||
raise IOError("_get_collection is failing on: {} {} {}".format(
|
||||
feed_basename, feed_dir, feed_ext
|
||||
))
|
||||
else:
|
||||
# we expect only one collection
|
||||
collection = collections[0]
|
||||
return
|
||||
|
||||
# we expect only one collection
|
||||
collection = collections[0]
|
||||
|
||||
if collection.is_contiguous():
|
||||
# if no holes then return collection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue