mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 07:53:40 +01:00
Simplify some code
This commit is contained in:
parent
0ed98515ad
commit
0257b1077f
1 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ class EmbedCoverArtPlugin(BeetsPlugin):
|
|||
art.embed_album(self._log, album, maxwidth, False,
|
||||
compare_threshold, ifempty)
|
||||
|
||||
if remove_art_file and album.artpath is not None:
|
||||
if remove_art_file and album.artpath:
|
||||
if os.path.isfile(album.artpath):
|
||||
self._log.debug(u'Removing album art file '
|
||||
u'for {0}', album)
|
||||
|
|
@ -141,7 +141,7 @@ class EmbedCoverArtPlugin(BeetsPlugin):
|
|||
art.embed_album(self._log, album, max_width, True,
|
||||
self.config['compare_threshold'].get(int),
|
||||
self.config['ifempty'].get(bool))
|
||||
if self.config['remove_art_file'] and album.artpath is not None:
|
||||
if self.config['remove_art_file'] and album.artpath:
|
||||
if os.path.isfile(album.artpath):
|
||||
self._log.debug(u'Removing album art file '
|
||||
u'for {0}', album)
|
||||
|
|
|
|||
Loading…
Reference in a new issue