bug fixes and improvements

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

@ -56,8 +56,7 @@ def program_options():
try:
if args.create:
trial = 0
while trial < 3:
while True:
create = main(
args.subreddit,
args.background,
@ -68,7 +67,6 @@ def program_options():
if not create:
try_again = input("Something went wrong! Try again? [y/N] > ").strip()
if try_again in ["y", "Y"]:
trial += 1
continue
break

@ -10,7 +10,6 @@ from prawcore.exceptions import (
BadRequest
)
from dotenv import load_dotenv
from rich.console import Console
from utils.console import print_step, print_substep
@ -24,8 +23,6 @@ def get_subreddit_threads(subreddit_, thread_link_, number_of_comments):
Returns a list of threads from the AskReddit subreddit.
"""
console = Console()
global submission
load_dotenv()
@ -54,11 +51,11 @@ def get_subreddit_threads(subreddit_, thread_link_, number_of_comments):
RequestException,
BadRequest
):
console.print(
print_substep(
"[bold red]There is something wrong with the .env file, kindly check:[/bold red]\n"
+ "1. ClientID\n"
+ "2. ClientSecret\n"
+ "3. If these variables are fine, kindly check other variables."
+ "3. If these variables are fine, kindly check other variables.\n"
+ "4. Check if the type of Reddit app created is script (personal use script)."
)

@ -18,7 +18,6 @@ from utils.console import print_step, print_substep
def make_final_video(number_of_clips, file_name):
load_dotenv()
opacity = os.getenv("OPACITY")
print_step("Creating the final video...")

Loading…
Cancel
Save