new example and updated .gitignore

This commit is contained in:
Jason committed 2022-05-31 23:43:44 -04:00
1 parent 19cbe21a6d
commit 10f87c34c1
4 files changed
+3 -1

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
assets/
results/*
.env
reddit-bot-351418-5560ebc49cac.json
/.idea
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -44,10 +44,11 @@ def make_final_video(number_of_clips):
else:
return title[0:30] + "..."
final.write_videofile(f"assets/{get_video_title()}.mp4", fps=30, audio_codec="aac", audio_bitrate="192k")
final.write_videofile(f"results/{get_video_title()}.mp4", fps=30, audio_codec="aac", audio_bitrate="192k")
print_step("Removing temporary files 🗑")
cleanups = cleanup()
print_substep(f"Removed {cleanups} temporary files 🗑")
print_substep(f"See result in the results folder!")
print_step(f"Reddit title: {os.getenv('VIDEO_TITLE')} \n Background Credit: {os.getenv('background_credit')}")