summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rw-r--r--.local/bin/peertubetorrent7
1 files changed, 7 insertions, 0 deletions
diff --git a/.local/bin/peertubetorrent b/.local/bin/peertubetorrent
new file mode 100644
index 0000000..56f2476
--- /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 quality (480 or 1080)
+# 13/07/20 - Arthur Bais
+
+link="$(echo "$1" | sed "s/videos\/watch/download\/torrents/")""-$2.torrent"
+transadd "$link"