mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
🔷 redesign playlist header
This commit is contained in:
committed by
Mungai Geoffrey
parent
d0e2980dfe
commit
9c808aa817
@@ -12,7 +12,6 @@ from app.lib import folderslib
|
||||
|
||||
folder_bp = Blueprint("folder", __name__, url_prefix="/")
|
||||
from app import helpers
|
||||
import time
|
||||
|
||||
|
||||
@folder_bp.route("/folder", methods=["POST"])
|
||||
|
||||
@@ -20,10 +20,11 @@ def send_track_file(trackid):
|
||||
for file in api.PRE_TRACKS
|
||||
if file["_id"]["$oid"] == trackid
|
||||
][0]
|
||||
return send_file(filepath, mimetype="audio/mp3")
|
||||
except FileNotFoundError:
|
||||
except (FileNotFoundError, IndexError):
|
||||
return "File not found", 404
|
||||
|
||||
return send_file(filepath, mimetype="audio/mp3")
|
||||
|
||||
|
||||
@track_bp.route("/sample")
|
||||
def get_sample_track():
|
||||
|
||||
Reference in New Issue
Block a user