Files: 762c108c6dc008453fbff099340086a31f6f17a5 / mpServerDefinitions.py
1121 bytesRaw
1 | #!/usr/bin/python3 |
2 | |
3 | # |
4 | # Defines constants for MediaProcessor.py, a class to scrape videos with yt-dlp |
5 | # |
6 | EMAIL_RETRIES = 3 # How many times to attempt email delivery |
7 | EMAIL_DELAY = 60 # Delay between attempts, in seconds |
8 | EMAIL_SERVR = ["email_server.tld", 587] |
9 | EMAIL_LOGIN = ["emailUser@email_server.tld", "email_server password"] |
10 | EMAIL_LIST = ["list of email addresses", "to send results", "comma separated"] |
11 | EMAIL_URLS = EMAIL_LIST # A separate email list to only send URLs to |
12 | STATIC_DB_HASH = "IPNS hash to publish sqlite database revisions" |
13 | DOWNLOAD_IP = "111.222.333.444" # The IP address to use for downloads |
14 | IP_ADR_LIST = ["111.222.333.444", "555.666.777.888", "..."] |
15 | IP_ADR_INDX = 0 |
16 | YTDL_PROG = 'yt-dlp' |
17 | EMAIL_SUB1 = 'Media Processor Results' |
18 | EMAIL_SUB2 = 'URLs for content saved in IPFS' |
19 | EMAIL_FROM = "emailUser@email_server.tld" |
20 | SEND_EMAIL = True # Send results to email recipients |
21 | SEPARATOR = "~^~" # Separates elements of the downloaded file pathname |
22 | EXT_LIST = ("webm", "mp4", "mp3", "mkv", "m4v") # Download file extensions |
23 |
Built with git-ssb-web