From 40a3c03ed6df24cf473465983459072d5d36712d Mon Sep 17 00:00:00 2001 From: satya ratnam Date: Wed, 8 Jun 2022 10:32:03 +0800 Subject: [PATCH] Updated sleep time --- main.py | 4 ++-- video_creation/screenshot_downloader.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e501726..ca534e2 100644 --- a/main.py +++ b/main.py @@ -16,13 +16,13 @@ print_markdown( "### Thanks for using this tool! [Feel free to contribute to this project on GitHub!](https://lewismenelaws.com) If you have any questions, feel free to reach out to me on Twitter or submit a GitHub issue. \n ### This modified version of this tool was created by [@tya.design](https://tya.design) and is available on [GitHub](https://github.com/Tyaaa-aa/RedditVideoMakerBot)." ) -time.sleep(3) +time.sleep(10) # The maximum length of the video in seconds. (This is the length of the video that will be created, but not 100% accurate) MAX_LENGTH = 55 # Video speed multiplier (1.0 = normal speed, 2.0 = double speed, 0.5 = half speed) -VIDEO_SPEED = 1.2 +VIDEO_SPEED = 1.4 # Voice accent https://gtts.readthedocs.io/en/latest/module.html?highlight=accent VOICE_ACCENT = "co.uk" diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index d79a882..969de92 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -33,7 +33,9 @@ def download_screenshots_of_reddit_posts(reddit_object, screenshot_num, theme): page.goto(reddit_object["thread_url"]) # page.set_viewport_size(ViewportSize(width=1080, height=1920)) page.set_viewport_size(ViewportSize(width=700, height=1280, device_scale_factor=0.5)) + # page.set_viewport_size(ViewportSize(width=1080, height=1920, device_scale_factor=0.5)) + print_substep("Browser Launched Successfully!") if page.locator('[data-testid="content-gate"]').is_visible(): # This means the post is NSFW and requires to click the proceed button.