ytd/example/config.toml
2026-04-08 12:58:52 +03:00

58 lines
No EOL
1.5 KiB
TOML

# Persist processed entries between sessions
database = "database.redb"
# Iterator delay in seconds (prevents server abuse)
# * unset or comment to run asap
sleep = 1
# Update channels queue, in seconds (activates daemon mode)
# * unset or comment to run once
# update = 60
# Run specified commands or scripts before and after each queue iteration
# * `exec` is required
# * `stdout_contains` is optional
# * will panic if `stdout_contains` is defined and does not match expected stdout
# [before]
# exec = ""
# stdout_contains = [""]
# [after]
# exec = ""
# stdout_contains = [""]
# Video instance provider, Youtube by default
# provider = "Youtube"
# provider = "Invidious"
# provider = { Invidious = "https://tux.rs" }
# Channels queue config
[channel.test]
id = "UCl2mFZoRqjw_ELax4Yisf6w" # channel ID
# is_live = false
# is_short = false
# is_upcoming = false
# items_limit = 1
# item_name_regex = ".*"
# Channel item commands to apply (in order)
[[channel.test.item]]
exec = "/usr/bin/echo {ID}" # Supported macro replacements:
# * {ID} - parsed item ID (e.g. `yt-dlp https://youtu.be/{ID}`)
# See also: https://codeberg.org/YGGverse/pidpilne/src/branch/main/usr/local/bin/aacp.m4a
stdout_contains = ["\n"] # Check stdout for containing expected string, optional
# [[channel.test.item]]
# ..
# [[channel.test.item]]
# ..
# [channel.test2]
# ..
# [channel.test3]
# ..