Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -889,7 +889,7 @@ def get_video_metadata(video_id):
|
|
| 889 |
Fetches video metadata such as title and description using the YouTube Data API.
|
| 890 |
"""
|
| 891 |
try:
|
| 892 |
-
YOUTUBE_API_KEY = "
|
| 893 |
youtube = build("youtube", "v3", developerKey=YOUTUBE_API_KEY)
|
| 894 |
request = youtube.videos().list(part="snippet", id=video_id)
|
| 895 |
response = request.execute()
|
|
|
|
| 889 |
Fetches video metadata such as title and description using the YouTube Data API.
|
| 890 |
"""
|
| 891 |
try:
|
| 892 |
+
YOUTUBE_API_KEY = "AIzaSyD_SDF4lC3vpHVAMnBOcN2ZCTz7dRjUc98" # Replace with your YouTube Data API key
|
| 893 |
youtube = build("youtube", "v3", developerKey=YOUTUBE_API_KEY)
|
| 894 |
request = youtube.videos().list(part="snippet", id=video_id)
|
| 895 |
response = request.execute()
|