Rollbackpunkt, alles außer TikTok geht, die wollen wieder so eine extra locke bei Login
Dieser Commit ist enthalten in:
@ -520,16 +520,21 @@ class FacebookAutomation(BaseAutomation):
|
||||
bool: True bei Erfolg, False bei Fehler
|
||||
"""
|
||||
try:
|
||||
# Lade gespeicherten Fingerprint für Account
|
||||
saved_fingerprint = self.fingerprint_service.get_fingerprint_for_account(account_id, "facebook")
|
||||
|
||||
if saved_fingerprint:
|
||||
fingerprint = self.fingerprint_service.get_account_fingerprint(account_id)
|
||||
|
||||
if fingerprint:
|
||||
logger.info(f"Verwende gespeicherten Fingerprint für Account {account_id}")
|
||||
self.provided_fingerprint = saved_fingerprint
|
||||
else:
|
||||
logger.info(f"Kein gespeicherter Fingerprint für Account {account_id}, generiere neuen")
|
||||
self.provided_fingerprint = self.fingerprint_service.generate_fingerprint("facebook")
|
||||
|
||||
fingerprint = self.fingerprint_service.create_account_fingerprint(
|
||||
account_id=account_id,
|
||||
profile_type="desktop",
|
||||
platform="facebook"
|
||||
)
|
||||
|
||||
self.provided_fingerprint = fingerprint.to_dict() if hasattr(fingerprint, 'to_dict') else fingerprint
|
||||
self.account_fingerprint = fingerprint
|
||||
|
||||
# Browser mit Fingerprint initialisieren
|
||||
return self._initialize_browser()
|
||||
|
||||
@ -569,4 +574,4 @@ class FacebookAutomation(BaseAutomation):
|
||||
base_email += str(random.randint(1, 999))
|
||||
|
||||
# Füge Domain hinzu
|
||||
return f"{base_email}@{self.email_domain}"
|
||||
return f"{base_email}@{self.email_domain}"
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren