Spaces:
Running
Running
Next
commited on
Commit
•
130ca0b
1
Parent(s):
82223a5
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ def download_media(url, download_video):
|
|
7 |
if download_video:
|
8 |
ydl_opts = {
|
9 |
'format': 'bestvideo+bestaudio/best',
|
|
|
10 |
'outtmpl': 'downloads/%(title)s.%(ext)s',
|
11 |
}
|
12 |
else:
|
|
|
7 |
if download_video:
|
8 |
ydl_opts = {
|
9 |
'format': 'bestvideo+bestaudio/best',
|
10 |
+
'preferredcodec': 'mp4',
|
11 |
'outtmpl': 'downloads/%(title)s.%(ext)s',
|
12 |
}
|
13 |
else:
|