jefadu commited on
Commit
26825cd
·
verified ·
1 Parent(s): ea638d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -21,11 +21,8 @@ model = WhisperModel("systran/faster-distil-whisper-small.en", device="cpu", com
21
 
22
  # Base yt-dlp options – 2025-proof + cookie ready
23
  YDL_OPTS = {
24
- "format": "(bestvideo[height<=720]/bestvideo)+(bestaudio/best)", # <-- THIS IS THE KEY
25
- "merge_output_format": "mp4", # forces merge even if separate
26
- "postprocessor_args": {
27
- "ffmpeg": ["-threads", "4"] # helps HF merge faster
28
- },
29
  "quiet": True,
30
  "no_warnings": True,
31
  "geo_bypass": True,
@@ -38,7 +35,6 @@ YDL_OPTS = {
38
  },
39
  "extractor_args": {
40
  "youtube": {
41
- "skip": ["hls", "dash"],
42
  "player_client": ["android", "web"],
43
  "player_skip": ["configs"],
44
  }
 
21
 
22
  # Base yt-dlp options – 2025-proof + cookie ready
23
  YDL_OPTS = {
24
+ "format": "bv+ba/b", # <-- MAGIC: bestvideo + bestaudio / best (never fails)
25
+ "merge_output_format": "mp4", # Ensures merged output is always .mp4
 
 
 
26
  "quiet": True,
27
  "no_warnings": True,
28
  "geo_bypass": True,
 
35
  },
36
  "extractor_args": {
37
  "youtube": {
 
38
  "player_client": ["android", "web"],
39
  "player_skip": ["configs"],
40
  }