File tree Expand file tree Collapse file tree
ultima_scraper_api/apis/onlyfans/classes/websocket Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010import websockets
1111
12- from ultima_scraper_api .apis .onlyfans .urls import APIRoutes
1312from ultima_scraper_api .apis .onlyfans .classes .extras import AuthDetails
13+ from ultima_scraper_api .apis .onlyfans .urls import APIRoutes
1414from ultima_scraper_api .managers .websocket_manager .protocol import WebSocketProtocol
1515
1616if TYPE_CHECKING :
@@ -103,7 +103,6 @@ async def connect(self) -> None:
103103
104104 logger .debug ("OnlyFans WebSocket connected" )
105105
106- # Send initial connect frame with auth token if available
107106 assert isinstance (self .auth , OnlyFansAuthModel )
108107 token = self .auth .user .ws_auth_token
109108 if token :
@@ -224,7 +223,6 @@ async def _refresh_ws_credentials(self) -> None:
224223 new_token = json_resp .get ("wsAuthToken" )
225224 new_url = json_resp .get ("wsUrl" )
226225 assert isinstance (self .auth , OnlyFansAuthModel )
227-
228226 if new_token and new_token != self .auth .user .ws_auth_token :
229227 self .auth .user .ws_auth_token = new_token
230228 logger .info ("Refreshed OnlyFans WS auth token" )
You can’t perform that action at this time.
0 commit comments