add {PROVIDER} macro support

This commit is contained in:
yggverse 2026-04-08 14:10:52 +03:00
parent a61f29de6d
commit 5fc73924df
2 changed files with 12 additions and 8 deletions

View file

@ -23,7 +23,7 @@ sleep = 1
# Invidious provider, Youtube by default
# provider = "https://tux.rs"
# provider = "https://inv.thepixora.com"
# Channels queue config
@ -40,7 +40,8 @@ sleep = 1
[[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
# * {PROVIDER} - current `provider` URL if set (e.g. `https://inv.thepixora.com`) or `https://youtu.be`
# See also: https://codeberg.org/YGGverse/pidpilne/src/branch/main/usr/local/bin
stdout_contains = ["\n"] # Check stdout for containing expected string, optional
# [[channel.test.item]]