Chrunos commited on
Commit
cb07cc1
·
verified ·
1 Parent(s): 160098c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 url else None
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}