mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 18:02:10 +01:00
beet modify: Treat arguments with : before = as queries, not modifications
This can be useful if the value being queried contains an equal sign.
This commit is contained in:
parent
e21c04e912
commit
52d0c19fb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue