amitgcode commited on
Commit
ab24a0f
·
verified ·
1 Parent(s): 5407d1b

Update transcribe_videos.py

Browse files
Files changed (1) hide show
  1. 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
- #'cookiefile':'testcookie',
103
- 'extractor_args':{'youtubetab':'skip=webpage',
104
- 'youtube':'player_skip=webpage,configs;visitor_data=VISITOR_DATA_VALUE_HERE'
105
- }}, ) as ydl:
 
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']