little fixes

pull/280/head
iaacornus 3 years ago
parent ef6792de90
commit 70a34402d1
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -45,7 +45,7 @@ def main(subreddit_=None, background=None, filename=None, thread_link_=None):
"[bold red] Your .env file is invalid, or was never created. Standby.[/bold red]"
)
console.print("[bold green]Checking environment variables...[/bol green]")
console.print("[bold green]Checking environment variables...[/bold green]")
for val in REQUIRED_VALUES:
if not os.getenv(val):

@ -87,7 +87,7 @@ def get_subreddit_threads(subreddit_, thread_link_):
threads = subreddit.hot(limit=25)
submission = list(threads)[random.randrange(0, 25)]
print_substep(f"Video will be: {submission.title} :thumbsup:")
print_substep(f"Video will be: [cyan]{submission.title}[/cyan] :thumbsup:")
try:
content["thread_url"] = submission.url

@ -43,7 +43,7 @@ def setup():
)
console.print(
"[bold]If you don't have these, please follow the instructions in the README.md file to "
+ "set them up.\n If you do have these, type yes to continue. If you don't, go ahead and "
+ "set them up.\nIf you do have these, type yes to continue. If you don't, go ahead and "
+ "grab those quickly and come back.[/bold]"
)

@ -19,9 +19,8 @@ def download_screenshots_of_reddit_posts(reddit_object, screenshot_num, theme):
# ! Make sure the reddit screenshots folder exists
Path("assets/png").mkdir(parents=True, exist_ok=True)
print_substep("Launching Headless Browser...")
with sync_playwright() as browser_:
print_substep("Launching Headless Browser...")
browser = browser_.chromium.launch()
context = browser.new_context()

Loading…
Cancel
Save