#!/bin/bash
echo "请输入url："
read url

yt-dlp --cookies /root/youtube.com_cookies.txt --merge-output-format mp4 --ffmpeg-location /root/ffmpeg/ffmpeg-master-latest-linux64-gpl/bin/ --js-runtimes deno:/root/.deno/bin/deno --remote-components ejs:github "$url" -F

if [ $? -ne 0 ]; then
echo "yt-dlp非0 失败"
exit 0
fi

yt-dlp --cookies /root/youtube.com_cookies.txt --merge-output-format mp4 --ffmpeg-location /root/ffmpeg/ffmpeg-master-latest-linux64-gpl/bin/ --js-runtimes deno:/root/.deno/bin/deno --remote-components ejs:github "$url"

if [ $? -eq 0 ]; then
  echo ok
else
  echo "命令执行失败"
fi


