From 52d0c19fb779da1b0ba83fdbbebec7dd1ce0a59f Mon Sep 17 00:00:00 2001 From: Mook Date: Sun, 13 Apr 2014 19:41:22 -0700 Subject: [PATCH] `beet modify`: Treat arguments with : before = as queries, not modifications This can be useful if the value being queried contains an equal sign. --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index cc5b14cfe..fd91c0dcd 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1170,7 +1170,7 @@ def modify_func(lib, opts, args): for arg in args: if arg.endswith('!') and '=' not in arg and ':' not in arg: dels.append(arg[:-1]) # Strip trailing !. - elif '=' in arg: + elif '=' in arg and ':' not in arg.split('=', 1)[0]: mods.append(arg) else: query.append(arg)