From 467456e6e433c4bdbc730a5ff72ebb8cdb39a96b Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 24 Sep 2021 17:35:46 +0800 Subject: [PATCH] feat: add m3u8 download script --- m3u8下載/dl.sh | 11 +++++++++-- m3u8下載/test.sh | 16 +++++++++++----- m3u8下載/test.ts | 1 + 3 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 m3u8下載/test.ts 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