mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
parent
3de0f4b741
commit
a3ebf990fe
2
app.py
2
app.py
@ -143,7 +143,7 @@ def route_api_preview():
|
|||||||
if not song_row:
|
if not song_row:
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
song_type = song_row[0][10]
|
song_type = song_row[0][12]
|
||||||
prev_path = make_preview(song_id, song_type)
|
prev_path = make_preview(song_id, song_type)
|
||||||
if not prev_path:
|
if not prev_path:
|
||||||
return redirect(urlparse.urljoin(request.host_url, '/songs/%s/main.mp3' % song_id))
|
return redirect(urlparse.urljoin(request.host_url, '/songs/%s/main.mp3' % song_id))
|
||||||
|
Loading…
Reference in New Issue
Block a user