fixed headless error and reformatted
This commit is contained in:
1 parent
bf8c802c5e
commit
767e34c843
2 files changed
+1
-3
No files matched your search
@@ -3,8 +3,6 @@ import random
|
||||
from utils import settings
|
||||
from gtts import gTTS
|
||||
|
||||
max_chars = 0
|
||||
|
||||
|
||||
class GTTS:
|
||||
def __init__(self):
|
||||
|
||||
@@ -32,7 +32,7 @@ def download_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: in
|
||||
with sync_playwright() as p:
|
||||
print_substep("Launching Headless Browser...")
|
||||
|
||||
browser = p.chromium.launch()
|
||||
browser = p.chromium.launch(headless=False)
|
||||
context = browser.new_context()
|
||||
|
||||
if settings.config["settings"]["theme"] == "dark":
|
||||
|
||||
Reference in new issue
Block a user