From 7bd821e050f6543c20794299d79c061c238cd195 Mon Sep 17 00:00:00 2001 From: Harshith Date: Wed, 9 Jun 2021 20:26:57 +0530 Subject: [PATCH] feat: no more browser :) --- ani-cli | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/ani-cli b/ani-cli index 2cc1450..487dd27 100755 --- a/ani-cli +++ b/ani-cli @@ -137,23 +137,19 @@ while :; do video_url=$(get_links "$selection_id" "$ep_choice") case $video_url in - *stream*) + *streamtape*) BROWSER=${BROWSER:-firefox} - printf "Downloadable mp4 not found, stream on browser?[y/N] " - read choice - case $choice in - [yY]) setsid -f $BROWSER "$video_url" >/dev/null 2>&1 - ;; - *) - exit 0 - ;; - esac - ;; - *) - setsid -f mpv "$video_url" >/dev/null 2>&1 - ;; + printf "scraping streamtape.com\n" + video_url=$(curl -s "$video_url" | sed -n -E ' + /^