From d8c078a45eac2e0fdd5de31ced6c6d94581bc778 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 12 Jun 2015 19:28:10 +0300 Subject: [PATCH] rc: managing transmission-daemon Or in other words getting out list of torrents and magnet links. Closes #71 --- rc/bashrc | 8 ++++++++ rc/zshrc | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index cb16d620..969d1c99 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -871,6 +871,14 @@ ssldownloadcert () { echo QUIT | openssl s_client -connect $1:443 | sed -ne '/BEGIN CERT/,/END CERT/p' | tee $1.pem } +# Getting magnet from transmission-daemon +transmission-torrents () { + transmission-remote -l +} +transmission-magnet () { + transmission-remote -l -t $1 -i | grep magnet +} + # .custom if [ -f ~/.custom ]; then source ~/.custom diff --git a/rc/zshrc b/rc/zshrc index 9b6705c8..4896fb00 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -860,6 +860,15 @@ ssldownloadcert () { echo QUIT | openssl s_client -connect $1:443 | sed -ne '/BEGIN CERT/,/END CERT/p' | tee $1.pem } +# Getting magnet from transmission-daemon +transmission-torrents () { + transmission-remote -l +} +transmission-magnet () { + transmission-remote -l -t $1 -i | grep magnet +} + + # Source files for miscannellious modifications. # .custom