Extractart uses the configured art_filename. Closes #1258

This commit is contained in:
Malte Ried 2015-01-23 17:14:14 +01:00
parent 268dcb0008
commit b3803d3472
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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!)