Embedart extraction: 'cover' is already the default

'cover' is already the default filename (in the absence of a custom
config) so there is no need to re-write that value in the embertart
plugin.

Improve #1258
This commit is contained in:
Bruno Cauet 2015-01-23 18:06:37 +01:00
parent b3803d3472
commit b30c6975a1

View file

@ -88,8 +88,7 @@ class EmbedCoverArtPlugin(BeetsPlugin):
help='image output file')
def extract_func(lib, opts, args):
outpath = normpath(opts.outpath or (config['art_filename'].get()
or 'cover'))
outpath = normpath(opts.outpath or config['art_filename'].get())
item = lib.items(decargs(args)).get()
self.extract(outpath, item)
extract_cmd.func = extract_func