flame: fix for single file use

This commit is contained in:
Jakub Jezek 2022-05-11 17:12:54 +02:00
parent ac16e1f8bb
commit 8a1f7c1006
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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