mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 08:34:23 +01:00
Only leftmost subpath is replaced
This commit is contained in:
parent
ce974d4fc7
commit
99de85b5c2
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class MPDClientWrapper(object):
|
|||
entry = self.get('currentsong')
|
||||
if 'file' in entry:
|
||||
if not is_url(entry['file']):
|
||||
file = entry['file'].replace(self.strip_path, '')
|
||||
file = entry['file'].replace(self.strip_path, '', count=1)
|
||||
result = os.path.join(self.music_directory, file)
|
||||
else:
|
||||
result = entry['file']
|
||||
|
|
|
|||
Loading…
Reference in a new issue