Fix mpd tag cache code with respect to newest test
This commit is contained in:
parent
837f35ef36
commit
febdbce0e1
@ -177,7 +177,12 @@ def _convert_mpd_data(data, tracks, artists, albums, music_dir):
|
||||
|
||||
num_tracks = int(data['track'].split('/')[1])
|
||||
track_no = int(data['track'].split('/')[0])
|
||||
path = os.path.join(music_dir, data['file'][1:])
|
||||
path = data['file']
|
||||
|
||||
if path[0] == '/':
|
||||
path = path[1:]
|
||||
|
||||
path = os.path.join(music_dir, path)
|
||||
uri = 'file://' + urllib.pathname2url(path)
|
||||
|
||||
artist = Artist(name=data['artist'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user