mirror of
https://github.com/beetbox/beets.git
synced 2025-12-18 14:44:28 +01:00
parent
8ae0317014
commit
e374830cca
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ class PathQuery(dbcore.FieldQuery):
|
|||
colon = query_part.find(':')
|
||||
if colon != -1:
|
||||
query_part = query_part[:colon]
|
||||
return os.sep in query_part and os.path.exists(query_part)
|
||||
return (os.sep in query_part
|
||||
and os.path.exists(syspath(normpath(query_part))))
|
||||
|
||||
def match(self, item):
|
||||
path = item.path if self.case_sensitive else item.path.lower()
|
||||
|
|
|
|||
Loading…
Reference in a new issue