pull/435/head
thomasdevl 3 years ago committed by GitHub
parent aa8dfd71b6
commit 52433ab5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -89,20 +89,13 @@ except:
exit() exit()
console.log("[bold green]Enviroment Variables are set! Continuing...") console.log("[bold green]Enviroment Variables are set! Continuing...")
def get_thread(): def main():
'''
The user isn't forced to choose the random thread
'''
reddit_object = get_subreddit_threads() reddit_object = get_subreddit_threads()
u_inp = input("Is this a good threads?(Y/N/Stop) :") u_inp = input("Is this a good threads?(Y/N/Stop) :") #The user isn't forced to choose the random thread
if u_inp.upper() == 'STOP': exit() if u_inp.upper() == 'STOP': exit()
elif u_inp.upper() == 'Y': return reddit_object elif u_inp.upper() != 'Y':
else:
console.log(f"[red]Searching for a new thread...") console.log(f"[red]Searching for a new thread...")
get_thread() main()
if configured:
reddit_object = get_thread()
length, number_of_comments = save_text_to_mp3(reddit_object) length, number_of_comments = save_text_to_mp3(reddit_object)
download_screenshots_of_reddit_posts( download_screenshots_of_reddit_posts(
reddit_object, number_of_comments, os.getenv("THEME", "light") reddit_object, number_of_comments, os.getenv("THEME", "light")
@ -110,3 +103,8 @@ if configured:
download_background() download_background()
chop_background_video(length) chop_background_video(length)
final_video = make_final_video(number_of_comments) final_video = make_final_video(number_of_comments)
if configured:
main()

Loading…
Cancel
Save