From 25ce2af3508894e42196ee93cf96575be44b865b Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 2 Feb 2023 15:51:43 +0100 Subject: [PATCH 1/2] Fix backgrounds bug --- utils/backgrounds.json | 8 ++++---- video_creation/screenshot_downloader.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/backgrounds.json b/utils/backgrounds.json index 8cb01d1..6e00992 100644 --- a/utils/backgrounds.json +++ b/utils/backgrounds.json @@ -4,13 +4,13 @@ "https://www.youtube.com/watch?v=vw5L4xCPy9Q", "bike-parkour-gta.mp4", "Achy Gaming", - 480 + "center" ], "rocket-league": [ "https://www.youtube.com/watch?v=2X9QGY__0II", "rocket_league.mp4", "Orbital Gameplay", - 200 + "center" ], "minecraft": [ "https://www.youtube.com/watch?v=n_Dv4JMiwK8", @@ -22,7 +22,7 @@ "https://www.youtube.com/watch?v=qGa9kWREOnE", "gta-stunt-race.mp4", "Achy Gaming", - 480 + "center" ], "csgo-surf": [ "https://www.youtube.com/watch?v=E-8JlyO59Io", @@ -34,7 +34,7 @@ "https://www.youtube.com/watch?v=uVKxtdMgJVU", "cluster_truck.mp4", "No Copyright Gameplay", - 480 + "center" ], "minecraft-2": [ "https://www.youtube.com/watch?v=Pt5_GSKIWQM", diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index d3fbf17..71bfb70 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -38,7 +38,7 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): with sync_playwright() as p: print_substep("Launching Headless Browser...") - browser = p.chromium.launch(headless=False) # headless=False #to check for chrome view + browser = p.chromium.launch() # headless=False for debugging context = browser.new_context() # Device scale factor (or dsf for short) allows us to increase the resolution of the screenshots # When the dsf is 1, the width of the screenshot is 600 pixels From 6d177d36b74a15538a9c9560a5a70df65aa5234e Mon Sep 17 00:00:00 2001 From: Simon <65854503+OpenSourceSimon@users.noreply.github.com> Date: Thu, 2 Feb 2023 16:24:54 +0100 Subject: [PATCH 2/2] Version 3.0.1 includes a couple of bug fixes --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index dcb1861..7e4d1b9 100755 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ from video_creation.final_video import make_final_video from video_creation.screenshot_downloader import get_screenshots_of_reddit_posts from video_creation.voices import save_text_to_mp3 -__VERSION__ = "3.0" +__VERSION__ = "3.0.1" print( """