From 767e34c843e4778baefe6ace0866e8ba4ced4dc2 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 19 Jul 2022 18:35:39 -0400 Subject: [PATCH] fixed headless error and reformatted --- TTS/GTTS.py | 2 -- video_creation/screenshot_downloader.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TTS/GTTS.py b/TTS/GTTS.py index cef1b24..29b5333 100644 --- a/TTS/GTTS.py +++ b/TTS/GTTS.py @@ -3,8 +3,6 @@ import random from utils import settings from gtts import gTTS -max_chars = 0 - class GTTS: def __init__(self): diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index 2344fce..e5ae4f5 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -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":