Changing Downloads ports
This commit is contained in:
@@ -7,9 +7,9 @@ cd "$_DIRNAME" || _exit 1
|
||||
## if not $1
|
||||
if [[ -z $1 ]]
|
||||
then
|
||||
_LINES=$(curl "http://10.0.0.1:4447" 2>/dev/null | sed -e "s|.*<a href=\"\([^\"]*\).*|$1\1|" -e "s/.*<.*\|.*C=D.*\|.*\/\/$\|.*.nfo//" -e "/^$/d")
|
||||
_LINES=$(curl "http://10.0.0.1:2013" 2>/dev/null | sed -e "s|.*<a href=\"\([^\"]*\).*|$1\1|" -e "s/.*<.*\|.*C=D.*\|.*\/\/$\|.*.nfo//" -e "/^$/d")
|
||||
else
|
||||
_LINES="$(curl "http://10.0.0.1:4447/$1" 2>/dev/null | sed -e "s|.*<a href=\"\([^\"]*\).*|$1\1|" -e "s/.*<.*\|.*C=D.*\|.*\/\/$\|.*.nfo//" -e "/^$/d")"
|
||||
_LINES="$(curl "http://10.0.0.1:2013/$1" 2>/dev/null | sed -e "s|.*<a href=\"\([^\"]*\).*|$1\1|" -e "s/.*<.*\|.*C=D.*\|.*\/\/$\|.*.nfo//" -e "/^$/d")"
|
||||
fi
|
||||
|
||||
_RESULT=$(rofi -dmenu -i <<< "$_LINES")
|
||||
|
||||
Reference in New Issue
Block a user