From a98bc481cd3e9718e58cf551a11905c6ea3e832b Mon Sep 17 00:00:00 2001 From: Ali Graham Date: Sat, 27 Feb 2016 19:02:10 +1030 Subject: [PATCH] tweaks for style, option name --- beetsplug/convert.py | 8 ++++---- docs/plugins/convert.rst | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 0f2eb8d4d..81c6f4eb8 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -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: diff --git a/docs/plugins/convert.rst b/docs/plugins/convert.rst index b992663a4..b93227b62 100644 --- a/docs/plugins/convert.rst +++ b/docs/plugins/convert.rst @@ -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``.