Fix #196: In-place imported tracks non-ascii characters don't break reverse-proxy serving

This commit is contained in:
Eliot Berriot 2018-05-10 18:52:00 +02:00
parent d21a9616f9
commit 1937b81699
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 20 additions and 2 deletions

View file

@ -241,7 +241,7 @@ 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)
path = audio_file.replace(prefix, serve_path, 1).encode('utf-8')
return path