From bb89177ff90b609e19092dd15c4edad6553af932 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 10 Jun 2022 01:10:06 +0200 Subject: [PATCH] Revert "Replace peerflix script with a shell alias" This reverts commit ac6a2451db5fe428d6e98d9aafb5ef85efaf56d1. --- fish/.config/fish/config.fish | 1 - scripts/.local/share/scripts/peerflix | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 scripts/.local/share/scripts/peerflix diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 3cb0ca4..e196c59 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -12,7 +12,6 @@ alias vim "nvim" alias docker-compose "podman-compose" alias sc "systemctl" alias jc "journalctl -eu" -alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'" # Additional paths set PATH $PATH $HOME/.emacs.d/bin diff --git a/scripts/.local/share/scripts/peerflix b/scripts/.local/share/scripts/peerflix new file mode 100755 index 0000000..5dc177c --- /dev/null +++ b/scripts/.local/share/scripts/peerflix @@ -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"