Yaelcode commited on
Commit
3011c2c
·
verified ·
1 Parent(s): 2db8067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -109,8 +109,14 @@ def login_with_proxy(account_str):
109
  proxy_url = f"socks5://127.0.0.1:{WARP_PORT}"
110
  subprocess.run(["mega-proxy", proxy_url], capture_output=True)
111
 
 
 
 
 
 
112
  print(f"🔑 Giriş Deneniyor: {email[:3]}***", flush=True)
113
  res = subprocess.run(["mega-login", email, password], capture_output=True, text=True, timeout=45)
 
114
  if res.returncode == 0:
115
  print("✅ Giriş Başarılı.", flush=True)
116
  return True
 
109
  proxy_url = f"socks5://127.0.0.1:{WARP_PORT}"
110
  subprocess.run(["mega-proxy", proxy_url], capture_output=True)
111
 
112
+ # --- EKLENEN KRİTİK KISIM: ZORLA ÇIKIŞ (LOGOUT) ---
113
+ subprocess.run(["mega-logout"], capture_output=True, stderr=subprocess.DEVNULL)
114
+ time.sleep(2)
115
+ # --------------------------------------------------
116
+
117
  print(f"🔑 Giriş Deneniyor: {email[:3]}***", flush=True)
118
  res = subprocess.run(["mega-login", email, password], capture_output=True, text=True, timeout=45)
119
+
120
  if res.returncode == 0:
121
  print("✅ Giriş Başarılı.", flush=True)
122
  return True