root 2 هفته پیش
والد
کامیت
e0b9ba2575
2فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 0 5
      booker_builtin.py
  2. 7 2
      plugins/tls_plugin.py

+ 0 - 5
booker_builtin.py

@@ -219,11 +219,6 @@ class BuiltinBookerGCO:
                         
                     t_cd = self.task_backoff.calculate(t_fails)
                     self._log(f"⏳ Task={task_id} (Booking Attempt {t_fails}) suspended for {t_cd:.1f}s.")
-                    
-                    def delayed_return(tid, wait_sec, reason):
-                        self.m_stop_event.wait(wait_sec)
-                        self._safe_return_task(tid, reason=reason)
-                        
                     self.redis_client.zadd(self.m_tracker_key, {str(task_id): time.time() + t_cd})
             
         finally:

+ 7 - 2
plugins/tls_plugin.py

@@ -169,6 +169,10 @@ class TlsPlugin(IVSPlg):
         co.set_argument('--disable-dev-shm-usage')
         co.set_argument('--window-size=1920,1080')
         co.set_argument('--disable-blink-features=AutomationControlled')
+        co.set_argument('--ignore-gpu-blocklist')
+        co.set_argument('--enable-webgl')
+        co.set_argument('--use-gl=angle')
+        co.set_argument('--use-angle=swiftshader')
         co.set_argument(f"--fingerprint={specific_fp.get('seed')}")
         co.set_argument(f"--fingerprint-platform={specific_fp.get('platform')}")
         co.set_argument(f"--fingerprint-brand={specific_fp.get('brand')}")
@@ -327,7 +331,7 @@ class TlsPlugin(IVSPlg):
                     location = self.free_config.get('location')
                     self.travel_group = next((g for g in groups if location in g['location']), None)
                     
-                    if not self.travel_group:
+                    if not self.travel_group or not self.travel_group.get("submitted"):
                         self._save_screenshot("group_not_found")
                         raise NotFoundError(f"Group not found for {location}")
                 
@@ -850,7 +854,8 @@ class TlsPlugin(IVSPlg):
                 groups.append({
                     'group_name': g.get('groupName'),
                     'group_number': g.get('formGroupId'),
-                    'location': g.get('vacName')
+                    'location': g.get('vacName'),
+                    'submitted': g.get('submitted')
                 })
         else:
             self._log('Parsed travel group page, but not found travelGroups')