ytd/example/config.toml

40 lines
No EOL
1 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
# 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.command]]
exec = "/usr/bin/echo {ID}" # Supported macro replacements:
# * {ID} - parsed item URL
# 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.command]]
# ..
# [[channel.test.command]]
# ..
# [channel.test2]
# ..
# [channel.test3]
# ..