From 611237afa568ef7f5901d49b8c703e14c601e4eb Mon Sep 17 00:00:00 2001 From: coolnsx Date: Mon, 22 Jan 2024 17:43:43 +0530 Subject: [PATCH] Lock S-foils in attack position --- download | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/download b/download index 1820386..dd8186f 100755 --- a/download +++ b/download @@ -127,6 +127,10 @@ case "$link" in video_url=$(curl -X POST -A "$agent" -s "https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false" -H "content-type:application/json" -H "X-Youtube-Client-Version: $yt_ver" -d "$json" -e "$link" | tr '{}' '\n' | sed -nE 's|.*,"title":"([^"]*)".*|\tout=\1\.mp4|p;s|.*itag":18,"url":"([^"]*)".*|\1|p;s|.*itag":22,"url":"([^"]*)".*|\1|p' | tail -2) printf "%s" "$video_url" | grep -q "googlevideo\.com" || fallback=1 ;; + *) + info "Invalid URL" "none" "none" + exit 0 + ;; esac if [ -n "$fallback" ]; then