summaryrefslogtreecommitdiffstats
path: root/.local/bin/peertubetorrent
blob: 56f2476ef83005fdcc0a99aeb97dcf792cbb72f6 (plain) (blame)
1
2
3
4
5
6
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"