From 1d76310b6a235abaae7bea888a05511ac2a0ddd6 Mon Sep 17 00:00:00 2001 From: Syed Aman Raza <109358640+electro199@users.noreply.github.com> Date: Sun, 9 Oct 2022 20:28:56 +0500 Subject: [PATCH] bug: typo --- video_creation/screenshot_downloader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video_creation/screenshot_downloader.py b/video_creation/screenshot_downloader.py index 54c2797..855308e 100644 --- a/video_creation/screenshot_downloader.py +++ b/video_creation/screenshot_downloader.py @@ -72,7 +72,7 @@ def download_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: in postcontentpath = f"assets/temp/{id}/png/title.png" page.locator('[data-test-id="post-content"]').screenshot(path=postcontentpath) - if not settings.config["settings"]["storymodemethode"]and settings.config["settings"]["storymode"]: + if not settings.config["settings"]["storymodemethod"]and settings.config["settings"]["storymode"]: try : #new change page.locator('[data-click-id="text"]').first.screenshot( @@ -125,10 +125,10 @@ def download_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: in bgcolor=(255,255,255,255) txtcolor=(0,0,0) if settings.config["settings"]["storymode"] : - # if settings.config["settings"]["storymodemethode"] == 0: + # if settings.config["settings"]["storymodemethod"] == 0: # story=True - if settings.config["settings"]["storymodemethode"] : + if settings.config["settings"]["storymodemethod"] : # for idx,item in enumerate(reddit_object["thread_post"]): imagemaker(theme=bgcolor,reddit_obj=reddit_object,txtclr=txtcolor) download(cookie_file) \ No newline at end of file