sudo-soldier commited on
Commit
fcdb38d
·
verified ·
1 Parent(s): 1a7afb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -14,6 +14,7 @@ def process_youtube_url(url, uploaded_file, state):
14
  ydl_opts = {
15
  'format': 'bestaudio/best',
16
  'outtmpl': 'downloads/%(id)s.%(ext)s',
 
17
  }
18
 
19
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
@@ -96,3 +97,4 @@ interface.launch()
96
 
97
 
98
 
 
 
14
  ydl_opts = {
15
  'format': 'bestaudio/best',
16
  'outtmpl': 'downloads/%(id)s.%(ext)s',
17
+ 'cookiefile': 'cookies.txt' # Using YouTube cookies
18
  }
19
 
20
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
 
97
 
98
 
99
 
100
+