From b3803d34723b26d2f84a8c7f17dc61c07f55732b Mon Sep 17 00:00:00 2001 From: Malte Ried Date: Fri, 23 Jan 2015 17:14:14 +0100 Subject: [PATCH] Extractart uses the configured art_filename. Closes #1258 --- beetsplug/embedart.py | 3 ++- docs/plugins/embedart.rst | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 9ff4bf165..ecdf57d66 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -88,7 +88,8 @@ class EmbedCoverArtPlugin(BeetsPlugin): help='image output file') def extract_func(lib, opts, args): - outpath = normpath(opts.outpath or 'cover') + outpath = normpath(opts.outpath or (config['art_filename'].get() + or 'cover')) item = lib.items(decargs(args)).get() self.extract(outpath, item) extract_cmd.func = extract_func diff --git a/docs/plugins/embedart.rst b/docs/plugins/embedart.rst index bf99c3873..273046979 100644 --- a/docs/plugins/embedart.rst +++ b/docs/plugins/embedart.rst @@ -80,8 +80,9 @@ embedded album art: * ``beet extractart [-o FILE] QUERY``: extracts the image from an item matching the query and stores it in a file. You can specify the destination file using the ``-o`` option, but leave off the extension: it will be chosen - automatically. The destination filename defaults to ``cover`` if it's not - specified. + automatically. The destination filename is specified using the + ``art_filename`` configuration option. It defaults to ``cover`` if it's not + specified via ``-o`` nor the config. * ``beet clearart QUERY``: removes all embedded images from all items matching the query. (Use with caution!)