diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-15 00:33:26 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-15 00:33:26 +0200 | 
| commit | 826ce094fecc4c6e07faf6e8b91387c2ae49842c (patch) | |
| tree | 1820c843e4e260f6b51e8d269a972295a17e558c /bin/extra/ehbtodl | |
| parent | c032a9d071ee4b7eb2bfe79ec03d2a7dc4020f15 (diff) | |
| parent | a915b5ade1a47b9678e2f9963b13b49dbd406031 (diff) | |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/ehbtodl')
| -rwxr-xr-x | bin/extra/ehbtodl | 14 | 
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/extra/ehbtodl b/bin/extra/ehbtodl index df11797..fc873f6 100755 --- a/bin/extra/ehbtodl +++ b/bin/extra/ehbtodl @@ -1,9 +1,13 @@  #!/usr/bin/env sh -echo "$1" | sed 's/-H/\\\n\t&/g' | sed '/gzip/d' > /tmp/curlcommand.sh  -sh /tmp/curlcommand.sh > /tmp/ehbso.html -vids="$(grep -oE "youtube\.com/embed/.{11}" /tmp/ehbso.html | cut -d'/' -f 3 | tr '\n' ' ')" +printf "%s\n" "$1" | +	sed 's/-H/\\\n&/g' | +	sed '/gzip/d' | +	tee /tmp/curlcommand.sh | +	sh > /tmp/ehbso.html +vids="$(grep -oE "youtube\.com/embed/.{11}" /tmp/ehbso.html | +	cut -d'/' -f 3 | +	tr '\n' ' ')"  for i in $vids  -do -	echo "https://www.youtube.com/watch?v=$i" +do printf "%s\n" "https://www.youtube.com/watch?v=$i"  done > /tmp/todownload  # yt-dlp -P "$HOME/Downloads/vids" -o "%(title)s" -a /tmp/todownload  | 
