Revert "Replace peerflix script with a shell alias"

This reverts commit ac6a2451db.
This commit is contained in:
coolneng 2022-06-10 01:10:06 +02:00
parent 330180f5b1
commit bb89177ff9
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 8 additions and 1 deletions

View File

@ -12,7 +12,6 @@ alias vim "nvim"
alias docker-compose "podman-compose" alias docker-compose "podman-compose"
alias sc "systemctl" alias sc "systemctl"
alias jc "journalctl -eu" alias jc "journalctl -eu"
alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'"
# Additional paths # Additional paths
set PATH $PATH $HOME/.emacs.d/bin set PATH $PATH $HOME/.emacs.d/bin

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
directory=/tmp/webtorrent
player=mpv
webtorrent download "$1" -s -o "$directory" --"$player"
read -rp "File number: " nr
webtorrent download "$@" -s "$nr" -o "$directory" --"$player"