Spaces:
Runtime error
Runtime error
seawolf2357
commited on
Commit
•
df4a546
1
Parent(s):
f3654c2
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,8 @@ async def get_best_available_transcript(video_id):
|
|
99 |
return None
|
100 |
|
101 |
async def get_video_comments(video_id):
|
102 |
-
|
|
|
103 |
comments = []
|
104 |
response = youtube_service.commentThreads().list(part='snippet', videoId=video_id, maxResults=100).execute()
|
105 |
for item in response.get('items', []):
|
|
|
99 |
return None
|
100 |
|
101 |
async def get_video_comments(video_id):
|
102 |
+
|
103 |
+
try:
|
104 |
comments = []
|
105 |
response = youtube_service.commentThreads().list(part='snippet', videoId=video_id, maxResults=100).execute()
|
106 |
for item in response.get('items', []):
|