git ssb

0+

thomas-dev-patchwork / MediaProcessor



Tree: b46e4ec37c3250819bcfec6a303708c4994256a0

Files: b46e4ec37c3250819bcfec6a303708c4994256a0 / 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#
6EMAIL_RETRIES = 3 # How many times to attempt email delivery
7EMAIL_DELAY = 60 # Delay between attempts, in seconds
8EMAIL_SERVR = ["email_server.tld", 587]
9EMAIL_LOGIN = ["emailUser@email_server.tld", "email_server password"]
10EMAIL_LIST = ["list of email addresses", "to send results", "comma separated"]
11EMAIL_URLS = EMAIL_LIST # A separate email list to only send URLs to
12STATIC_DB_HASH = "IPNS hash to publish sqlite database revisions"
13DOWNLOAD_IP = "111.222.333.444" # The IP address to use for downloads
14IP_ADR_LIST = ["111.222.333.444", "555.666.777.888", "..."]
15IP_ADR_INDX = 0
16YTDL_PROG = 'yt-dlp'
17EMAIL_SUB1 = 'Media Processor Results'
18EMAIL_SUB2 = 'URLs for content saved in IPFS'
19EMAIL_FROM = "emailUser@email_server.tld"
20SEND_EMAIL = True # Send results to email recipients
21SEPARATOR = "~^~" # Separates elements of the downloaded file pathname
22EXT_LIST = ("webm", "mp4", "mp3", "mkv", "m4v") # Download file extensions
23

Built with git-ssb-web