Spaces:
Runtime error
Runtime error
Update transcribe_videos.py
Browse files- transcribe_videos.py +5 -4
transcribe_videos.py
CHANGED
|
@@ -99,10 +99,11 @@ def transcribe_and_save(url, output_dir="output"):
|
|
| 99 |
try:
|
| 100 |
# Download audio with yt-dlp
|
| 101 |
with yt_dlp.YoutubeDL({'format': 'bestaudio',
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
|
|
|
| 106 |
#{'youtube': {'skip': ['dash', 'hls']}
|
| 107 |
info = ydl.extract_info(url, download=False)
|
| 108 |
audio_url = info['url']
|
|
|
|
| 99 |
try:
|
| 100 |
# Download audio with yt-dlp
|
| 101 |
with yt_dlp.YoutubeDL({'format': 'bestaudio',
|
| 102 |
+
'cookiefile':'testcookie',
|
| 103 |
+
# 'extractor_args':{'youtubetab':'skip=webpage',
|
| 104 |
+
# 'youtube':'player_skip=webpage,configs;visitor_data=VISITOR_DATA_VALUE_HERE'
|
| 105 |
+
# }},
|
| 106 |
+
) as ydl:
|
| 107 |
#{'youtube': {'skip': ['dash', 'hls']}
|
| 108 |
info = ydl.extract_info(url, download=False)
|
| 109 |
audio_url = info['url']
|