- slightly modified config, api keys now have the value "CHANGEME" - requirements.txt has new dependency, flask apscheduler - ythdd.py has been reworked, support for argument parsing has been added, code is now split into functions - ythdd_api_v1.py features real uptime as well - ythdd_db.py is no longer dependent on ythdd_globals.py - ythdd_globals.py has a method for setting config and getting it from configfile variable
38 lines
1.4 KiB
TOML
38 lines
1.4 KiB
TOML
[general]
|
|
db_file_path = "/path/to/ythdd_db.sqlite" # Preferably stored on an SSD.
|
|
video_storage_directory_path = "/path/to/videos/" # Path to video vault.
|
|
is_proxied = false
|
|
|
|
[api]
|
|
api_key = "" # Leave empty API key for public access to non-sensitive backend
|
|
api_key_admin = "CHANGEME" # Empty *admin* API key will autogenerate a random one every launch.
|
|
|
|
[extractor]
|
|
user-agent = "" # leave empty for default
|
|
cookies_path = "" # leave empty for none
|
|
|
|
[admin]
|
|
# List of users with admin priviledges.
|
|
admins = ["admin"]
|
|
|
|
[yt_dlp]
|
|
# ...
|
|
|
|
[postprocessing]
|
|
# Presets passed to yt-dlp. Reencoding uses ffmpeg to
|
|
presets = [
|
|
# First entry is the default.
|
|
# Naming convention:
|
|
# [N] - native video, as downloaded from youtube
|
|
# [R] - ffmpeg-reencoded file
|
|
# V+A - video with audio
|
|
{name="recommended: [N][<=720p] best V+A", format="bv[height<=720]+ba", reencode=""},
|
|
{name="[N][1080p] best V+A", format="bv[height=1080]+ba", reencode=""},
|
|
{name="[R][1080p] webm", format="bv[height=1080]+ba", reencode="webm"},
|
|
{name="[N][720p] best V+A", format="bv[height=720]+ba", reencode=""},
|
|
{name="[R][720p] webm", format="bv[height=720]+ba", reencode="webm"},
|
|
{name="[N][480p] best V+A", format="bv[height=480]+ba", reencode=""},
|
|
{name="[480p] VP9 webm/reencode", format="bv*[height=480][ext=webm]+ba/bv[height=480]+ba", reencode="webm"},
|
|
{name="[N][1080p] best video only", format="bv[height=1080]", reencode=""},
|
|
{name="[N][opus] best audio only", format="ba", reencode="opus"}
|
|
] |