shikharyashmaurya
commited on
Commit
•
9a11def
1
Parent(s):
b22bf42
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def extract_transcript_details(youtube_video_url):
|
|
39 |
try:
|
40 |
# video_id=youtube_video_url.split("=")[1]
|
41 |
# video_id=extract_video_id(youtube_link)
|
42 |
-
video_id=
|
43 |
|
44 |
transcript_text=YouTubeTranscriptApi.get_transcript(video_id)
|
45 |
|
@@ -65,7 +65,7 @@ youtube_link = st.text_input("Enter YouTube Video Link:")
|
|
65 |
if youtube_link:
|
66 |
# video_id = youtube_link.split("=")[1]
|
67 |
# video_id=extract_video_id(youtube_link)
|
68 |
-
video_id=
|
69 |
print(video_id)
|
70 |
st.image(f"http://img.youtube.com/vi/{video_id}/0.jpg", use_column_width=True)
|
71 |
|
|
|
39 |
try:
|
40 |
# video_id=youtube_video_url.split("=")[1]
|
41 |
# video_id=extract_video_id(youtube_link)
|
42 |
+
video_id=parseYoutubeURL(youtube_link)
|
43 |
|
44 |
transcript_text=YouTubeTranscriptApi.get_transcript(video_id)
|
45 |
|
|
|
65 |
if youtube_link:
|
66 |
# video_id = youtube_link.split("=")[1]
|
67 |
# video_id=extract_video_id(youtube_link)
|
68 |
+
video_id=parseYoutubeURL(youtube_link)
|
69 |
print(video_id)
|
70 |
st.image(f"http://img.youtube.com/vi/{video_id}/0.jpg", use_column_width=True)
|
71 |
|