From 40153d6e10981b7b66024e4be9f464783708521d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20H=C3=BCbner?= Date: Sun, 13 Apr 2025 19:25:58 +0200 Subject: [PATCH] fix(youtube): use uvx --- .zsh_functions/youtube.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh_functions/youtube.zsh b/.zsh_functions/youtube.zsh index 007bf5e..78269bd 100644 --- a/.zsh_functions/youtube.zsh +++ b/.zsh_functions/youtube.zsh @@ -67,7 +67,7 @@ yts() { while read -r youtube_id; do # Add each video ID to the array of data (accumulating in $video_data) video_data=$(echo "$video_data" | jq --arg youtube_id "$youtube_id" '. + [{youtube_id: $youtube_id, status: "pending"}]') - done < <(yt-dlp "https://www.youtube.com/@$1/shorts" --flat-playlist --print "%(id)s") + done < <(uvx yt-dlp "https://www.youtube.com/@$1/shorts" --flat-playlist --print "%(id)s") # Check if video_data is still an empty array (meaning no videos were found) if [[ "$video_data" == "[]" ]]; then