From fc143ecd54f3f0dc7eede6cfb8631a3a897d6cf8 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 14 Apr 2014 10:43:09 -0700 Subject: [PATCH] changelog & style tweaks for #686 --- beets/ui/commands.py | 7 ++----- docs/changelog.rst | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index a4cd77763..3c86b2969 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1161,7 +1161,7 @@ def modify_parse_args(args): mods.append(arg) else: query.append(arg) - return (query, mods, dels) + return query, mods, dels modify_cmd = ui.Subcommand('modify', help='change metadata fields', aliases=('mod',)) @@ -1178,10 +1178,7 @@ modify_cmd.parser.add_option('-y', '--yes', action='store_true', modify_cmd.parser.add_option('-f', '--format', action='store', help='print with custom format', default=None) def modify_func(lib, opts, args): - args = decargs(args) - - (query, mods, dels) = modify_parse_args(args) - + query, mods, dels = modify_parse_args(decargs(args)) if not mods and not dels: raise ui.UserError('no modifications specified') write = opts.write if opts.write is not None else \ diff --git a/docs/changelog.rst b/docs/changelog.rst index 773031a12..5dcdb2bd1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -46,6 +46,9 @@ Fixes: * On Windows, paths on network shares (UNC paths) no longer cause "invalid filename" errors. * :doc:`/plugins/replaygain`: Fix crashes when attempting to log errors. +* The :ref:`modify-cmd` command can now accept query arguments that contain = + signs. An argument is considered a query part when a : appears before any + =s. Thanks to mook. .. _enum34: https://pypi.python.org/pypi/enum34 .. _enum: https://docs.python.org/3.4/library/enum.html