mguven61 commited on
Commit
a4136b6
·
verified ·
1 Parent(s): 5c82474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -24,7 +24,19 @@ def analyze():
24
  }],
25
  'outtmpl': 'temp_audio',
26
  'quiet': True,
27
- 'no_warnings': True
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
 
30
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
 
24
  }],
25
  'outtmpl': 'temp_audio',
26
  'quiet': True,
27
+ 'no_warnings': True,
28
+ 'cookiesfrombrowser': ('chrome',), # Tarayıcı çerezlerini kullan
29
+ 'extract_flat': True, # Sadece ses indir
30
+ 'noplaylist': True, # Playlist değil
31
+ 'ignoreerrors': True, # Hataları görmezden gel
32
+ 'no_check_certificate': True, # Sertifika kontrolünü atla
33
+ 'prefer_insecure': True, # Güvenli olmayan bağlantıları tercih et
34
+ 'http_headers': { # Tarayıcı gibi görün
35
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
36
+ 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
37
+ 'Accept-Language': 'en-us,en;q=0.5',
38
+ 'Sec-Fetch-Mode': 'navigate',
39
+ }
40
  }
41
 
42
  with yt_dlp.YoutubeDL(ydl_opts) as ydl: