Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,10 +67,10 @@ def login_with_proxy(account_str):
|
|
| 67 |
email, password = account_str.split(":", 1)
|
| 68 |
|
| 69 |
proxy_url = "socks5://127.0.0.1:9050"
|
| 70 |
-
subprocess.run(["mega-proxy", proxy_url],
|
| 71 |
|
| 72 |
-
#
|
| 73 |
-
subprocess.run(["mega-logout"],
|
| 74 |
time.sleep(2)
|
| 75 |
|
| 76 |
print(f"🔑 Giriş Deneniyor: {email[:3]}***", flush=True)
|
|
@@ -83,8 +83,10 @@ def login_with_proxy(account_str):
|
|
| 83 |
print(f"❌ Giriş Başarısız: {res.stderr}", flush=True)
|
| 84 |
return False
|
| 85 |
except Exception as e:
|
|
|
|
|
|
|
| 86 |
return False
|
| 87 |
-
|
| 88 |
def get_mega_details():
|
| 89 |
try:
|
| 90 |
res = subprocess.run(["mega-transfers"], capture_output=True, text=True)
|
|
|
|
| 67 |
email, password = account_str.split(":", 1)
|
| 68 |
|
| 69 |
proxy_url = "socks5://127.0.0.1:9050"
|
| 70 |
+
subprocess.run(["mega-proxy", proxy_url], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
| 71 |
|
| 72 |
+
# 🔥 İŞTE SİSTEMİ ÇÖKERTEN YER BURASIYDI, DÜZELTİLDİ!
|
| 73 |
+
subprocess.run(["mega-logout"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
| 74 |
time.sleep(2)
|
| 75 |
|
| 76 |
print(f"🔑 Giriş Deneniyor: {email[:3]}***", flush=True)
|
|
|
|
| 83 |
print(f"❌ Giriş Başarısız: {res.stderr}", flush=True)
|
| 84 |
return False
|
| 85 |
except Exception as e:
|
| 86 |
+
# Kod bir daha sessizce çökerse diye buraya uyarıcı ekledim
|
| 87 |
+
print(f"🔥 KOD İÇİNDE SİSTEM HATASI: {e}", flush=True)
|
| 88 |
return False
|
| 89 |
+
|
| 90 |
def get_mega_details():
|
| 91 |
try:
|
| 92 |
res = subprocess.run(["mega-transfers"], capture_output=True, text=True)
|