This commit is contained in:
Bruno Carlin 2021-07-05 18:00:17 +02:00
parent d6e546958e
commit 1e71e28659

View file

@ -0,0 +1,22 @@
# Defined in /tmp/fish.ib9W00/p-xnxx-all.fish @ line 2
function p-xnxx-all
set -l search $argv[1]
set -l page $argv[2]
if test -z "$search"
echo "ERROR: no search given"
exit 3
end
if test -z "page"
set -l page 0
end
wget -O - "https://www.xnxx.com/search/gay/$search/$page" \
| sed -e 's:>:>\n:g' \
| grep 'a href="/video-' \
| sed -e 's:.*href="\([^"]\+\)".*:https\://www.xnxx.com\1:' \
| uniq > /tmp/mpv-playlist
mpv --playlist=/tmp/mpv-playlist --autofit=50%x50%
end