You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
481 B
Python

import os
from yt_dlp_stream_to_s3.errors import YtDlpStreamToS3ConfigError
AWS_ENDPOINT_URL = os.getenv("AWS_ENDPOINT_URL")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_S3_BUCKET_NAME = os.getenv("AWS_S3_BUCKET_NAME")
envs = [AWS_ENDPOINT_URL, AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_ID, AWS_S3_BUCKET_NAME]
if not all(envs):
raise YtDlpStreamToS3ConfigError(f"Some or all environment variables are missing.")