Added ability to also see the uploader.

This commit is contained in:
cronyakatsuki 2022-10-30 16:46:45 +01:00
parent 87c6d86d35
commit ea4a1ebb83

View File

@ -40,6 +40,8 @@ while true; do
grep -P '<td class="coll-3 leeches">\d*</td>' tmp.html | sed 's/<[^>]*>//g' > leechers.bw
#get sizes
grep -P '<td class="coll-4 size mob-uploader">.*</td>' tmp.html | sed 's/<[^>]*>//g' > sizes.bw
#get uploaders
grep -P '<td class="coll-5 uploader"><a href=.*' tmp.html | sed 's/<[^>]*>//g' > uploaders.bw
#get links
grep -E '/torrent/' tmp.html | sed -E 's#.*(/torrent/.*)/">.*/#\1#' | sed 's/td>//g' > links.bw
@ -51,7 +53,7 @@ while true; do
printf '%s\n%s' "next" "previous" >> titlesNumbered.bw
#gets line number (that groupthe user selected in dmenu)
LINE=$(paste -d\| titlesNumbered.bw seeders.bw leechers.bw sizes.bw | \
LINE=$(paste -d\| titlesNumbered.bw uploaders.bw seeders.bw leechers.bw sizes.bw | \
sed 's/|||//' | dmenu -i -l 25 | cut -d- -f1)
[ "$LINE" == "next" ] && let "page+=1" && continue