Update app.py
Browse files
app.py
CHANGED
@@ -93,11 +93,7 @@ def extract_track_info(entities_by_unique_id: dict, platform: str):
|
|
93 |
|
94 |
@app.route('/match', methods=['POST'])
|
95 |
async def match():
|
96 |
-
|
97 |
-
data = await request.json()
|
98 |
-
except Exception as e:
|
99 |
-
logging.error(f"Error parsing JSON: {e}")
|
100 |
-
raise HTTPException(status_code=400, detail="Invalid JSON")
|
101 |
track_url = data.get('url')
|
102 |
|
103 |
if not track_url:
|
|
|
93 |
|
94 |
@app.route('/match', methods=['POST'])
|
95 |
async def match():
|
96 |
+
data = request.json()
|
|
|
|
|
|
|
|
|
97 |
track_url = data.get('url')
|
98 |
|
99 |
if not track_url:
|