add peertube torrents from newsboat (#760)
* Create peertubetorrent * macro to torrent new videos on peertube * fix typo * rebind
This commit is contained in:
parent
97358cfe81
commit
38815c3ad1
2 changed files with 10 additions and 1 deletions
|
@ -35,9 +35,11 @@ macro t set browser "qndl" ; open-in-browser ; set browser linkhandler
|
||||||
macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best" ; open-in-browser ; set browser linkhandler
|
macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best" ; open-in-browser ; set browser linkhandler
|
||||||
macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
|
macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
|
||||||
macro w set browser "lynx" ; open-in-browser ; set browser linkhandler
|
macro w set browser "lynx" ; open-in-browser ; set browser linkhandler
|
||||||
macro p set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler
|
macro d set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler
|
||||||
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkhandler
|
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkhandler
|
||||||
macro C set browser "youtube-viewer --comments=%u" ; open-in-browser ; set browser linkhandler
|
macro C set browser "youtube-viewer --comments=%u" ; open-in-browser ; set browser linkhandler
|
||||||
|
macro p set browser "peertubetorrent %u 480" ; open-in-browser ; set browser linkhandler
|
||||||
|
macro P set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser linkhandler
|
||||||
|
|
||||||
highlight all "---.*---" yellow
|
highlight all "---.*---" yellow
|
||||||
highlight feedlist ".*(0/0))" black
|
highlight feedlist ".*(0/0))" black
|
||||||
|
|
7
.local/bin/peertubetorrent
Normal file
7
.local/bin/peertubetorrent
Normal 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"
|
Loading…
Reference in a new issue