Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0a6b79a82 | ||
|
|
146609bbae | ||
|
|
cd712e992d |
@@ -311,12 +311,19 @@ def _cookie_login(driver, cookie: str) -> bool:
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
driver.add_cookie({"name": ".ROBLOSECURITY", "value": cookie, "domain": ".roblox.com"})
|
||||
driver.get("https://www.roblox.com/home")
|
||||
time.sleep(3)
|
||||
return "/login" not in driver.current_url
|
||||
driver.execute_cdp_cmd("Network.setCookie", {
|
||||
"name": ".ROBLOSECURITY",
|
||||
"value": cookie,
|
||||
"domain": ".roblox.com",
|
||||
"path": "/",
|
||||
"secure": True,
|
||||
"httpOnly": True,
|
||||
})
|
||||
except Exception:
|
||||
return False
|
||||
driver.add_cookie({"name": ".ROBLOSECURITY", "value": cookie, "domain": ".roblox.com"})
|
||||
driver.get("https://www.roblox.com/home")
|
||||
time.sleep(4)
|
||||
return "/login" not in driver.current_url
|
||||
|
||||
|
||||
def process_account(driver, acc: dict, donor_video: Path | None,
|
||||
@@ -768,7 +775,11 @@ def _process_one(tid: int, acc: dict,
|
||||
continue
|
||||
break
|
||||
except Exception as e:
|
||||
log.error("[T%d] Error: %s", tid, e)
|
||||
log.error("[T%d] Error: %s (attempt %d/%d)", tid, e, attempt + 1, max_retries)
|
||||
if attempt + 1 < max_retries:
|
||||
log.info("[T%d] Retrying after error...", tid)
|
||||
time.sleep(5)
|
||||
continue
|
||||
break
|
||||
finally:
|
||||
if TEST_MODE:
|
||||
|
||||
Reference in New Issue
Block a user