From 574c5ce50bb5992612ac16396e36a1a3e8111102 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 21 Nov 2019 17:40:30 +0100 Subject: [PATCH] add encoding track's name in deezer provider --- timeside/plugins/provider/deezer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timeside/plugins/provider/deezer.py b/timeside/plugins/provider/deezer.py index c4bf0670..7cc29392 100644 --- a/timeside/plugins/provider/deezer.py +++ b/timeside/plugins/provider/deezer.py @@ -26,7 +26,7 @@ def get_source_from_id(self, external_id, path, download=False): if download: file_name = request_json['artist']['name'] + '-' + request_json['title_short'] + '-' + external_id file_name = file_name.replace(' ','_') + '.mp3' - file_path = os.path.join(path,file_name) + file_path = os.path.join(path,file_name).encode('utf-8') r = get(source_uri) if not os.path.exists(path): os.makedirs(path) @@ -42,4 +42,4 @@ def get_source_from_url(self, url, path, download=False): return self.get_source_from_id(deezer_track_id, path, download) def get_id_from_url(self, url): - return url.split("/")[-1:][0] \ No newline at end of file + return url.split("/")[-1:][0]