mirror of
https://github.com/beetbox/beets.git
synced 2026-02-09 08:52:30 +01:00
ARGH! Wrong variable
This commit is contained in:
parent
921bc424cd
commit
0e67b6801c
1 changed files with 4 additions and 3 deletions
|
|
@ -127,9 +127,10 @@ class MPDClientWrapper(object):
|
|||
entry = self.get('currentsong')
|
||||
if 'file' in entry:
|
||||
if not is_url(entry['file']):
|
||||
if entry.startswith(self.strip_path):
|
||||
entry = entry[len(self.strip_path):]
|
||||
result = os.path.join(self.music_directory, entry)
|
||||
file = entry['file']
|
||||
if file.startswith(self.strip_path):
|
||||
file = file[len(self.strip_path):]
|
||||
result = os.path.join(self.music_directory, file)
|
||||
else:
|
||||
result = entry['file']
|
||||
return result, entry.get('id')
|
||||
|
|
|
|||
Loading…
Reference in a new issue