From a3ebf990fee2829f7fc6e938a8bc78c3ad93be4c Mon Sep 17 00:00:00 2001 From: Bui Date: Sun, 18 Nov 2018 19:53:37 +0000 Subject: [PATCH] fix song preview generation closes #74 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index bec341c..89976ef 100644 --- a/app.py +++ b/app.py @@ -143,7 +143,7 @@ def route_api_preview(): if not song_row: abort(400) - song_type = song_row[0][10] + song_type = song_row[0][12] prev_path = make_preview(song_id, song_type) if not prev_path: return redirect(urlparse.urljoin(request.host_url, '/songs/%s/main.mp3' % song_id))