vumichien commited on
Commit
65bb844
1 Parent(s): 80fb220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -188,7 +188,7 @@ def yt_transcribe(yt_url):
188
  'preferredquality': '192',
189
  }],
190
  'outtmpl':'audio.%(ext)s',
191
- 'cookiesfrombrowser': ('chrome',),
192
  }
193
 
194
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
@@ -206,7 +206,7 @@ def get_youtube(video_url):
206
 
207
  ydl_opts = {
208
  'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
209
- 'cookiesfrombrowser': ('chrome',),
210
  }
211
 
212
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
 
188
  'preferredquality': '192',
189
  }],
190
  'outtmpl':'audio.%(ext)s',
191
+ 'cookiefile': 'cookies.txt',
192
  }
193
 
194
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
 
206
 
207
  ydl_opts = {
208
  'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
209
+ 'cookiefile': 'cookies.txt',
210
  }
211
 
212
  with yt_dlp.YoutubeDL(ydl_opts) as ydl: