42Cummer commited on
Commit
189e9e7
·
verified ·
1 Parent(s): 066e30c

cumsock nigga

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -254,8 +254,13 @@ def seek():
254
  }
255
  # Use Playwright to handle redirects and wait for page to load
256
  with sync_playwright() as p:
257
- # Use the known working Chrome executable path (for non-root user)
258
- executable_path = "/home/user/.cache/ms-playwright/chromium-*/chrome-linux/chrome"
 
 
 
 
 
259
  print(f"Using Chrome executable: {executable_path}")
260
 
261
  browser = p.chromium.launch(
 
254
  }
255
  # Use Playwright to handle redirects and wait for page to load
256
  with sync_playwright() as p:
257
+ # Use the known working Chrome executable path (for root user)
258
+ import glob
259
+ chrome_paths = glob.glob("/root/.cache/ms-playwright/chromium-*/chrome-linux/chrome")
260
+ if not chrome_paths:
261
+ raise Exception("Chrome executable not found in /root/.cache/ms-playwright/")
262
+
263
+ executable_path = chrome_paths[0]
264
  print(f"Using Chrome executable: {executable_path}")
265
 
266
  browser = p.chromium.launch(