configuration/local/bin/eztv_add_selection.sh

4 lines
202 B
Bash
Raw Normal View History

2014-12-19 00:26:04 +01:00
wget "$(xclip -o)" -O "eztv_add_selection.html"
cat "eztv_add_selection.html" | grep 'class="magnet"' | sed 's/.*\("magnet:[^"]*"\).*/\1/' | xargs transmission-remote --add
rm "eztv_add_selection.html"