mirror of
https://github.com/sigmasternchen/Anineko
synced 2025-03-15 19:48:54 +00:00
new version of anineko
This commit is contained in:
parent
bcd5bafa26
commit
0bedb27172
2 changed files with 19 additions and 3 deletions
20
anineko
20
anineko
|
@ -16,7 +16,7 @@ help() {
|
||||||
"\nIf DIRECTORY is given, it will be created if it doesn't exist yet and all result videos will be downloaded to that directory."
|
"\nIf DIRECTORY is given, it will be created if it doesn't exist yet and all result videos will be downloaded to that directory."
|
||||||
else
|
else
|
||||||
echo -e \
|
echo -e \
|
||||||
"Usage: $1 file|search"\
|
"Usage: $1 file|search|update"\
|
||||||
"\nDownloads videos from GoGoAnime."\
|
"\nDownloads videos from GoGoAnime."\
|
||||||
"\n"\
|
"\n"\
|
||||||
"\nFor more help try: $1 file"\
|
"\nFor more help try: $1 file"\
|
||||||
|
@ -24,7 +24,23 @@ help() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if test "$mode" = "search"; then
|
if test "$mode" = "update"; then
|
||||||
|
echo "Checking md5sum of current version..."
|
||||||
|
if test "$(md5sum $0 | awk '{print $1}')" = $(wget -O - "https://raw.githubusercontent.com/overflowerror/Anineko/master/anineko.md5" -q); then
|
||||||
|
echo "Local version is up to date."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "Downloading update script..."
|
||||||
|
wget -O ${TMPPREFIX}.$$.anineko-install "https://raw.githubusercontent.com/overflowerror/Anineko/master/install" --progress=bar:force 2>&1 | tail -f -n +12
|
||||||
|
echo "Download finished..."
|
||||||
|
|
||||||
|
echo "Executing..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
bash ${TMPPREFIX}.$$.anineko-install
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
elif test "$mode" = "search"; then
|
||||||
text=$(echo $2 | tr " " "+")
|
text=$(echo $2 | tr " " "+")
|
||||||
dir=$3
|
dir=$3
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
f4e764111c119772a34a3bac767756b2
|
5546cc1a55ac738f5bb6f1dff1a5dc40
|
||||||
|
|
Loading…
Reference in a new issue