From 38815c3ad1a3ab75892b8146b424a2bc5e7c84cc Mon Sep 17 00:00:00 2001 From: Arthur Bais Date: Sat, 14 Nov 2020 22:12:38 +0200 Subject: add peertube torrents from newsboat (#760) * Create peertubetorrent * macro to torrent new videos on peertube * fix typo * rebind --- .local/bin/peertubetorrent | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .local/bin/peertubetorrent (limited to '.local/bin') 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" -- cgit v1.3.1