From 1e73c34288b3bd6dd0cdfa0d695374d97ffe9bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20H=C3=BCbner?= Date: Sun, 13 Apr 2025 19:55:04 +0200 Subject: [PATCH] feat(youtube): make check_shorts users configurable --- .environment.d/{youtube.env => youtube.env.skel} | 1 + .zsh_functions/youtube.zsh | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) rename .environment.d/{youtube.env => youtube.env.skel} (55%) diff --git a/.environment.d/youtube.env b/.environment.d/youtube.env.skel similarity index 55% rename from .environment.d/youtube.env rename to .environment.d/youtube.env.skel index cf2c388..4deb20e 100644 --- a/.environment.d/youtube.env +++ b/.environment.d/youtube.env.skel @@ -1 +1,2 @@ TUBE_TOKEN_NAME_IN_STORE="tube.lan" +TUBE_DEFAULT_USERS=("a" "b") diff --git a/.zsh_functions/youtube.zsh b/.zsh_functions/youtube.zsh index 771e49a..100bdd1 100644 --- a/.zsh_functions/youtube.zsh +++ b/.zsh_functions/youtube.zsh @@ -90,13 +90,7 @@ yts() { # check_shorts() { - # List of channels to check (you can hardcode them or pass them as arguments) - channels=( - "DarkBlondii" - "littlesiha" - "lenaindica" - ) - + channels=$TUBE_DEFAULT_USERS # Loop through each channel and call yts for channel in "${channels[@]}"; do echo "Checking shorts for channel: $channel"