diff options
-rwxr-xr-x | vid_sload | 12 | ||||
-rwxr-xr-x | webgut | 8 |
2 files changed, 6 insertions, 14 deletions
@@ -32,11 +32,11 @@ vidselect() { echo $vidlink reload elif [ $mode == 's' ]; then - yt-dlp -x -w -c --add-chapters --prefer-free-formats $vidlink && exit + yt-dlp -x -w -c --embed-chapters --prefer-free-formats $vidlink && exit elif [ $mode == 'v' ]; then - yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --add-chapters --prefer-free-formats $vidlink && exit + yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --embed-chapters --prefer-free-formats $vidlink && exit elif [ $mode == 'l' ] ; then - yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --add-chapters --prefer-free-formats -a ~/.cache/dl_list && rm ~/.cache/dl_list && touch ~/.cache/dl_list && exit + yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --embed-chapters --prefer-free-formats -a ~/.cache/dl_list && rm ~/.cache/dl_list && touch ~/.cache/dl_list && exit elif [ $mode == 'exit' ] ; then exit else @@ -57,15 +57,15 @@ else cd ~/Downloads case $use in sound) - yt-dlp -x -w -c --add-chapters --prefer-free-formats $link && exit;; + yt-dlp -x -w -c --embed-chapters --prefer-free-formats $link && exit;; video) - yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --add-chapters --prefer-free-formats $link && exit;; + yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --embed-chapters --prefer-free-formats $link && exit;; batch_sound) yt-dlp -x -w -c --prefer-free-formats -a ~/.cache/dl_list && rm ~/.cache/dl_list && touch ~/.cache/dl_list && exit ;; batch_video) - yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --add-chapters --prefer-free-formats -a ~/.cache/dl_list && rm ~/.cache/dl_list && touch ~/.cache/dl_list && exit ;; + yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=360]/best[height<=720]/best' -w -c --embed-chapters --prefer-free-formats -a ~/.cache/dl_list && rm ~/.cache/dl_list && touch ~/.cache/dl_list && exit ;; esac fi @@ -1,11 +1,6 @@ #!/bin/sh if [ -z "$1" ] then -echo "Search Video (v/V) or Web (w/W)?" && -read ans; - -if [ "$ans" = "v" ] -then rm -rf ~/.cache/webgut/thumbnails/* #export list="~/.cache/webgut/list" #export thumlist="~/.cache/webgut/thumlist" @@ -47,9 +42,6 @@ do done && sleep 10 [ $(ls ~/.cache/webgut/thumbnails | wc -l) -gt 20 ] && nsxiv -t ~/.cache/webgut/thumbnails/* -else - w3m gruble.de -fi else videoId=$(cat ~/.cache/webgut/list | grep $1 | gawk -F '***' '{print($2)}') videoUrl=https://yewtu.be/watch/?v=$videoId |