From 3a84773a9e9d2052615488744bcabedf879056ed Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 30 Dec 2021 00:09:47 +0100 Subject: [PATCH] Revert "Remove peerflix script" This reverts commit e15b4d74acb6d372f73029e78874097f7b7c412e. --- scripts/.local/share/scripts/peerflix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/.local/share/scripts/peerflix 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"