mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-01 02:54:01 +00:00
Improve semantics in commit -> b00152f
This commit is contained in:
@@ -337,7 +337,7 @@ class File(QtCore.QObject, Item):
|
||||
images = []
|
||||
if config.setting["caa_save_single_front_image"]:
|
||||
images = metadata.get_single_front_image()
|
||||
if images == []:
|
||||
if not images:
|
||||
images = metadata.images
|
||||
for image in images:
|
||||
image.save(dirname, metadata, counters)
|
||||
|
||||
@@ -60,12 +60,12 @@ class Metadata(dict):
|
||||
# FIXME : rename option at some point
|
||||
# Embed only ONE front image
|
||||
front_image = self.get_single_front_image(images)
|
||||
if front_image != []:
|
||||
if front_image:
|
||||
return front_image
|
||||
return images
|
||||
|
||||
def get_single_front_image(self, images=[]):
|
||||
if images == []:
|
||||
def get_single_front_image(self, images=None):
|
||||
if not images:
|
||||
images = self.images
|
||||
for img in images:
|
||||
if img.is_front_image():
|
||||
|
||||
Reference in New Issue
Block a user