pull/1288/head
Syed Aman Raza 2 years ago committed by GitHub
parent d48d24422e
commit 1d76310b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,7 @@ def download_screenshots_of_reddit_posts(reddit_object: dict, screenshot_num: in
postcontentpath = f"assets/temp/{id}/png/title.png" postcontentpath = f"assets/temp/{id}/png/title.png"
page.locator('[data-test-id="post-content"]').screenshot(path=postcontentpath) 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 try : #new change
page.locator('[data-click-id="text"]').first.screenshot( 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) bgcolor=(255,255,255,255)
txtcolor=(0,0,0) txtcolor=(0,0,0)
if settings.config["settings"]["storymode"] : if settings.config["settings"]["storymode"] :
# if settings.config["settings"]["storymodemethode"] == 0: # if settings.config["settings"]["storymodemethod"] == 0:
# story=True # story=True
if settings.config["settings"]["storymodemethode"] : if settings.config["settings"]["storymodemethod"] :
# for idx,item in enumerate(reddit_object["thread_post"]): # for idx,item in enumerate(reddit_object["thread_post"]):
imagemaker(theme=bgcolor,reddit_obj=reddit_object,txtclr=txtcolor) imagemaker(theme=bgcolor,reddit_obj=reddit_object,txtclr=txtcolor)
download(cookie_file) download(cookie_file)
Loading…
Cancel
Save