Merge pull request #101 from The-King-of-Toasters/master
Change sci-hub command to use 1 perl-style grep
This commit is contained in:
commit
d6b4fd8bbf
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ elif echo $wgetFiles | grep -w $ext > /dev/null; then
|
|||
elif echo "$@" | grep "$vidsites">/dev/null; then
|
||||
setsid nohup mpv -quiet "$1" > /dev/null & disown
|
||||
elif echo "$@" | grep "$academic">/dev/null; then
|
||||
curl -sO $(curl -s "$scihub""$@" | grep location.href | grep -o http.*pdf) & disown
|
||||
curl -sO "$(curl -s "$scihub$*" | grep -Po "(?<=location.href=').+.pdf")" & disown
|
||||
else
|
||||
setsid nohup $BROWSER "$1" 2>/dev/null & disown
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue