Fix #258: Implemented getCovertArt in Subsonic API to serve album covers

This commit is contained in:
Eliot Berriot 2018-05-31 23:46:15 +02:00
parent 218a92547e
commit 8d50743b3b
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 77 additions and 4 deletions

View file

@ -242,8 +242,8 @@ def get_file_path(audio_file):
'You need to specify MUSIC_DIRECTORY_SERVE_PATH and '
'MUSIC_DIRECTORY_PATH to serve in-place imported files'
)
path = audio_file.replace(prefix, serve_path, 1).encode('utf-8')
return path
path = audio_file.replace(prefix, serve_path, 1)
return path.encode('utf-8')
def handle_serve(track_file):