mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 10:34:09 +01:00
tweaks for style, option name
This commit is contained in:
parent
b59792c7a8
commit
a98bc481cd
2 changed files with 7 additions and 7 deletions
|
|
@ -133,7 +133,7 @@ class ConvertPlugin(BeetsPlugin):
|
|||
u'paths': {},
|
||||
u'never_convert_lossy_files': False,
|
||||
u'copy_album_art': False,
|
||||
u'copy_album_art_maxwidth': 0,
|
||||
u'album_art_maxwidth': 0,
|
||||
})
|
||||
self.import_stages = [self.auto_convert]
|
||||
|
||||
|
|
@ -341,8 +341,8 @@ class ConvertPlugin(BeetsPlugin):
|
|||
resize = False
|
||||
maxwidth = None
|
||||
|
||||
if self.config['copy_album_art_maxwidth']:
|
||||
maxwidth = self.config['copy_album_art_maxwidth'].get(int)
|
||||
if self.config['album_art_maxwidth']:
|
||||
maxwidth = self.config['album_art_maxwidth'].get(int)
|
||||
size = ArtResizer.shared.get_size(album.artpath)
|
||||
self._log.debug('image size: {}', size)
|
||||
if size:
|
||||
|
|
@ -358,7 +358,7 @@ class ConvertPlugin(BeetsPlugin):
|
|||
if not pretend:
|
||||
ArtResizer.shared.resize(maxwidth, album.artpath, dest)
|
||||
else:
|
||||
self._log.info(u'Copying cover art from {0} to {1}',
|
||||
self._log.info(u'cp {0} {1}',
|
||||
util.displayable_path(album.artpath),
|
||||
util.displayable_path(dest))
|
||||
if not pretend:
|
||||
|
|
|
|||
|
|
@ -62,9 +62,9 @@ file. The available options are:
|
|||
Default: none (system default),
|
||||
- **copy_album_art**: Copy album art when copying or transcoding albums matched
|
||||
using the ``-a`` option. Default: ``no``.
|
||||
- **copy_album_art_maxwidth**: Downscale album art if it's too big. The
|
||||
resize operation reduces image width to at most ``maxwidth`` pixels. The
|
||||
height is recomputed so that the aspect ratio is preserved.
|
||||
- **album_art_maxwidth**: Downscale album art if it's too big. The resize
|
||||
operation reduces image width to at most ``maxwidth`` pixels. The height is
|
||||
recomputed so that the aspect ratio is preserved.
|
||||
- **dest**: The directory where the files will be converted (or copied) to.
|
||||
Default: none.
|
||||
- **embed**: Embed album art in converted items. Default: ``yes``.
|
||||
|
|
|
|||
Loading…
Reference in a new issue