configuration/local/bin/eztv_add_selection.sh

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"