Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
+
|