mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
implement log access time fix
This commit is contained in:
parent
ce83a6155b
commit
77eaa9e4b0
6
ani-cli
6
ani-cli
@ -196,14 +196,14 @@ get_video_link() {
|
|||||||
resp=$(curl -A "$AGENT" -s "$1")
|
resp=$(curl -A "$AGENT" -s "$1")
|
||||||
if [ "$is_download" -eq 1 ]; then
|
if [ "$is_download" -eq 1 ]; then
|
||||||
i=1
|
i=1
|
||||||
[ "$quality" != "best" ] && i=3
|
|
||||||
else
|
else
|
||||||
i=4
|
i=2
|
||||||
fi
|
fi
|
||||||
|
[ "$quality" != "best" ] && i=3
|
||||||
links=$(printf "%s" "$resp" | sed -nE 's/.*data-status="1".*data-video="(.*)">.*/\1/p')
|
links=$(printf "%s" "$resp" | sed -nE 's/.*data-status="1".*data-video="(.*)">.*/\1/p')
|
||||||
while [ "$i" -ge 1 ] && [ "$i" -le 4 ] && [ -z "$result_links" ]; do
|
while [ "$i" -ge 1 ] && [ "$i" -le 4 ] && [ -z "$result_links" ]; do
|
||||||
generate_link "$i"
|
generate_link "$i"
|
||||||
[ "$is_download" -eq 1 ] && i=$((i + 1)) || i=$((i - 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
video_links="$result_links"
|
video_links="$result_links"
|
||||||
unset result_links
|
unset result_links
|
||||||
|
Loading…
Reference in New Issue
Block a user