TaiYouWeb commited on
Commit
0012aa9
1 Parent(s): 6180705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -209,7 +209,7 @@ def _return_yt_video_id(yt_url):
209
  if "youtube.com/watch?v=" in yt_url:
210
  video_id = yt_url.split("?v=")[1].split("&")[0]
211
  elif "youtu.be/" in yt_url:
212
- video_id = yt_url.split("youtu.be/")[1]
213
  return video_id
214
 
215
  def _return_yt_html_embed(yt_url):
 
209
  if "youtube.com/watch?v=" in yt_url:
210
  video_id = yt_url.split("?v=")[1].split("&")[0]
211
  elif "youtu.be/" in yt_url:
212
+ video_id = yt_url.split("youtu.be/")[1].split("?")[0]
213
  return video_id
214
 
215
  def _return_yt_html_embed(yt_url):