configuration/local/bin/eztv_add_selection.sh
2014-12-19 00:26:04 +01:00

4 lines
202 B
Bash
Executable File

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"