diff --git a/yt-dlp-ntfy.sh b/yt-dlp-ntfy.sh index a754b53..97b4c77 100755 --- a/yt-dlp-ntfy.sh +++ b/yt-dlp-ntfy.sh @@ -21,6 +21,8 @@ ACCESS_TOKEN="$NTFY_ACCESS_TOKEN" # Run the script in an infinite loop to listen for new messages while true; do while read -r message; do + event=$(echo "$message" | jq -r '.event') + [[ "$event" == "keepalive" ]] && continue video_url=$(echo "$message" | jq -r '.message') if [[ $video_url =~ ^https?:// ]]; then