From a601b8f31d3630039e18844013e6d70cf79e3e98 Mon Sep 17 00:00:00 2001 From: Arthur Bais Date: Mon, 13 Jul 2020 21:50:07 +0300 Subject: [PATCH] Create peertubetorrent --- .local/bin/peertubetorrent | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .local/bin/peertubetorrent diff --git a/.local/bin/peertubetorrent b/.local/bin/peertubetorrent new file mode 100644 index 00000000..02404cf2 --- /dev/null +++ b/.local/bin/peertubetorrent @@ -0,0 +1,7 @@ +#!/bin/sh +# torrent peertube videos, requires the transadd script +# first argument is the video link, second is the quiality (480 or 1080) +# 13/07/20 - Arthur Bais + +link="$(echo "$1" | sed "s/videos\/watch/download\/torrents/")""-$2.torrent" +transadd "$link"