Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -320,7 +320,7 @@ COOKIES_FILE = 'youtube.com_cookies.txt'
|
|
320 |
has_cookies = os.path.exists(COOKIES_FILE)
|
321 |
|
322 |
if has_cookies:
|
323 |
-
st.success("✅ Cookie file detected
|
324 |
else:
|
325 |
st.warning("⚠️ No cookie file found - Some videos might be restricted")
|
326 |
|
@@ -332,7 +332,7 @@ def download_video(url):
|
|
332 |
ydl_opts = {
|
333 |
'format': 'bestvideo+bestaudio/best',
|
334 |
'outtmpl': str(output_dir / '%(title)s.%(ext)s'),
|
335 |
-
'merge_output_format': '
|
336 |
'quiet': True,
|
337 |
'no_warnings': True,
|
338 |
'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
|
|
320 |
has_cookies = os.path.exists(COOKIES_FILE)
|
321 |
|
322 |
if has_cookies:
|
323 |
+
st.success("✅ Cookie file detected")
|
324 |
else:
|
325 |
st.warning("⚠️ No cookie file found - Some videos might be restricted")
|
326 |
|
|
|
332 |
ydl_opts = {
|
333 |
'format': 'bestvideo+bestaudio/best',
|
334 |
'outtmpl': str(output_dir / '%(title)s.%(ext)s'),
|
335 |
+
'merge_output_format': 'webm',
|
336 |
'quiet': True,
|
337 |
'no_warnings': True,
|
338 |
'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|