amitgcode commited on
Commit
c84bc84
·
verified ·
1 Parent(s): 4ffbd90

Upload transcribe_videos.py

Browse files
Files changed (1) hide show
  1. transcribe_videos.py +1 -1
transcribe_videos.py CHANGED
@@ -98,7 +98,7 @@ def transcribe_and_save(url, output_dir="output"):
98
  """
99
  try:
100
  # Download audio with yt-dlp
101
- with yt_dlp.YoutubeDL({'format': 'bestaudio'}) as ydl:
102
  info = ydl.extract_info(url, download=False)
103
  audio_url = info['url']
104
 
 
98
  """
99
  try:
100
  # Download audio with yt-dlp
101
+ with yt_dlp.YoutubeDL({'format': 'bestaudio','cookiefile':'testcookie'}, ) as ydl:
102
  info = ydl.extract_info(url, download=False)
103
  audio_url = info['url']
104