From 6041cce53e33e4f3fb0b98e4941e4918df20a69b Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 26 Dec 2022 14:16:26 +0100 Subject: [PATCH] Fix for calling story mode definition while it's off --- video_creation/screenshot_downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index 6df08a9..3a76b5b 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -63,9 +63,9 @@ def get_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: int): ) bgcolor = (255, 255, 255, 255) txtcolor = (0, 0, 0) - if settings.config["settings"]["storymodemethod"] == 1: + if storymode and settings.config["settings"]["storymodemethod"] == 1: # for idx,item in enumerate(reddit_object["thread_post"]): - imagemaker(theme=bgcolor, reddit_obj=reddit_object, txtclr=txtcolor) + return imagemaker(theme=bgcolor, reddit_obj=reddit_object, txtclr=txtcolor) cookies = json.load(cookie_file) cookie_file.close()