summaryrefslogtreecommitdiffstats
path: root/.local/bin/peertubetorrent
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-11-16 18:09:21 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-11-16 18:09:21 -0500
commit9df28899ded4ed4cd75c4fa05b8302f71ff8198d (patch)
treecddb4a5f009b5334563015906662411a08f76b99 /.local/bin/peertubetorrent
parentcba0fcc03d9cbab623eae419d308c5b1f7c1b193 (diff)
parent4493d431e3654e4ad59aa11f7419b71048872e5d (diff)
downloadeibhear-9df28899ded4ed4cd75c4fa05b8302f71ff8198d.tar.gz
eibhear-9df28899ded4ed4cd75c4fa05b8302f71ff8198d.tar.zst
eibhear-9df28899ded4ed4cd75c4fa05b8302f71ff8198d.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/peertubetorrent')
-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"