mirror of
https://github.com/beetbox/beets.git
synced 2026-03-06 21:22:09 +01:00
don't include path queries when querying albums
This commit is contained in:
parent
348eb2beff
commit
6eaf3f96ae
1 changed files with 2 additions and 2 deletions
|
|
@ -402,7 +402,7 @@ class CollectionQuery(Query):
|
|||
continue
|
||||
key, pattern = res
|
||||
if key is None: # No key specified.
|
||||
if os.sep in pattern:
|
||||
if os.sep in pattern and 'path' in all_keys:
|
||||
# This looks like a path.
|
||||
subqueries.append(PathQuery(pattern))
|
||||
else:
|
||||
|
|
@ -411,7 +411,7 @@ class CollectionQuery(Query):
|
|||
default_fields))
|
||||
elif key.lower() == 'comp': # a boolean field
|
||||
subqueries.append(BooleanQuery(key.lower(), pattern))
|
||||
elif key.lower() == 'path':
|
||||
elif key.lower() == 'path' and 'path' in all_keys:
|
||||
subqueries.append(PathQuery(pattern))
|
||||
elif key.lower() in all_keys: # ignore unrecognized keys
|
||||
subqueries.append(SubstringQuery(key.lower(), pattern))
|
||||
|
|
|
|||
Loading…
Reference in a new issue