读取当前请求链路里绑定的浏览器指纹。
(self)
| 43 | return self.default_timeout <= 0 |
| 44 | |
| 45 | def _get_request_fingerprint(self) -> Optional[Dict[str, Any]]: |
| 46 | """读取当前请求链路里绑定的浏览器指纹。""" |
| 47 | if not self.flow_client or not hasattr(self.flow_client, "get_request_fingerprint"): |
| 48 | return None |
| 49 | |
| 50 | try: |
| 51 | fingerprint = self.flow_client.get_request_fingerprint() |
| 52 | if isinstance(fingerprint, dict) and fingerprint: |
| 53 | return fingerprint |
| 54 | except Exception as e: |
| 55 | debug_logger.log_warning(f"Get request fingerprint failed: {str(e)}") |
| 56 | |
| 57 | return None |
| 58 | |
| 59 | async def _resolve_download_proxy( |
| 60 | self, |
no test coverage detected