pull/270/head
jacesleeman 3 years ago
parent a030979f46
commit fe92918823

@ -11,4 +11,4 @@ THEME=""
SUBREDDIT="" SUBREDDIT=""
# Range is 0 -> 1 # Range is 0 -> 1
OPACITY="" OPACITY=".9"

@ -9,6 +9,8 @@ from video_creation.final_video import make_final_video
from dotenv import load_dotenv from dotenv import load_dotenv
import os import os
REQUIRED_VALUES = ["REDDIT_CLIENT_ID","REDDIT_CLIENT_SECRET","REDDIT_USERNAME","REDDIT_PASSWORD", "OPACITY"]
print_markdown( print_markdown(
"### Thanks for using this tool! [Feel free to contribute to this project on GitHub!](https://lewismenelaws.com) If you have any questions, feel free to reach out to me on Twitter or submit a GitHub issue." "### Thanks for using this tool! [Feel free to contribute to this project on GitHub!](https://lewismenelaws.com) If you have any questions, feel free to reach out to me on Twitter or submit a GitHub issue."
) )

@ -30,6 +30,11 @@ def make_final_video(number_of_clips):
.resize(height=H) .resize(height=H)
.crop(x1=1166.6, y1=0, x2=2246.6, y2=1920) .crop(x1=1166.6, y1=0, x2=2246.6, y2=1920)
) )
try:
float(os.getenv("OPACITY"))
except:
print(f"Please ensure that OPACITY is set between 0 and 1 in your .env file")
configured = False
# Gather all audio clips # Gather all audio clips
audio_clips = [] audio_clips = []
for i in range(0, number_of_clips): for i in range(0, number_of_clips):

Loading…
Cancel
Save