Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,18 +24,7 @@ def analyze():
|
|
24 |
}],
|
25 |
'outtmpl': 'temp_audio',
|
26 |
'quiet': True,
|
27 |
-
'no_warnings': True
|
28 |
-
'extract_flat': True, # Sadece ses indir
|
29 |
-
'noplaylist': True, # Playlist değil
|
30 |
-
'ignoreerrors': True, # Hataları görmezden gel
|
31 |
-
'no_check_certificate': True, # Sertifika kontrolünü atla
|
32 |
-
'prefer_insecure': True, # Güvenli olmayan bağlantıları tercih et
|
33 |
-
'http_headers': { # Tarayıcı gibi görün
|
34 |
-
'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',
|
35 |
-
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
36 |
-
'Accept-Language': 'en-us,en;q=0.5',
|
37 |
-
'Sec-Fetch-Mode': 'navigate',
|
38 |
-
}
|
39 |
}
|
40 |
|
41 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
@@ -57,4 +46,4 @@ def analyze():
|
|
57 |
return jsonify({'error': str(e)})
|
58 |
|
59 |
if __name__ == '__main__':
|
60 |
-
app.run(debug=True,
|
|
|
24 |
}],
|
25 |
'outtmpl': 'temp_audio',
|
26 |
'quiet': True,
|
27 |
+
'no_warnings': True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
|
|
46 |
return jsonify({'error': str(e)})
|
47 |
|
48 |
if __name__ == '__main__':
|
49 |
+
app.run(debug=True, port=5000)
|