diff --git a/m3u8下載/dl.sh b/m3u8下載/dl.sh index 7a9cc88..54f7336 100644 --- a/m3u8下載/dl.sh +++ b/m3u8下載/dl.sh @@ -20,13 +20,20 @@ function cleanup { } # register the cleanup function to be called on the EXIT signal -# trap cleanup EXIT +trap cleanup EXIT echo "請輸入m3u8網址: ( copy as cURL(bash) )" read m3u8 +echo echo "請輸入其中一個ts的網址: ( copy as cURL(bash) )" read BASE +echo + +echo "請輸入下載檔案名稱: (ex: video.mp4)" +read output +echo +echo "下載開始...." m3u8="${m3u8} -o index.m3u8" cd $WORK_DIR @@ -51,4 +58,4 @@ while read p; do fi done InvalidKeyUnknown Key \ No newline at end of file