add peertube torrents from newsboat (#760)

* Create peertubetorrent

* macro to torrent new videos on peertube

* fix typo

* rebind
This commit is contained in:
Arthur Bais
2020-11-14 22:12:38 +02:00
committed by GitHub
parent 97358cfe81
commit 38815c3ad1
2 changed files with 10 additions and 1 deletions

View File

@@ -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"