Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ async def match():
|
|
111 |
title = track_info["entitiesByUniqueId"][entityUniqueId]["title"]
|
112 |
artist = track_info["entitiesByUniqueId"][entityUniqueId]["artistName"]
|
113 |
if youtube_url:
|
114 |
-
video_id = youtube_url.split("v=")[1] if "v=" in
|
115 |
if title and artist:
|
116 |
filename = f"{title} - {artist}"
|
117 |
return {"url": youtube_url, "filename": filename, "track_id": video_id}
|
|
|
111 |
title = track_info["entitiesByUniqueId"][entityUniqueId]["title"]
|
112 |
artist = track_info["entitiesByUniqueId"][entityUniqueId]["artistName"]
|
113 |
if youtube_url:
|
114 |
+
video_id = youtube_url.split("v=")[1] if "v=" in youtube_url else None
|
115 |
if title and artist:
|
116 |
filename = f"{title} - {artist}"
|
117 |
return {"url": youtube_url, "filename": filename, "track_id": video_id}
|