implement log access time fix

This commit is contained in:
ksyasuda 2022-05-05 16:59:27 -07:00
parent ce83a6155b
commit 77eaa9e4b0

View File

@ -196,14 +196,14 @@ get_video_link() {
resp=$(curl -A "$AGENT" -s "$1")
if [ "$is_download" -eq 1 ]; then
i=1
[ "$quality" != "best" ] && i=3
else
i=4
i=2
fi
[ "$quality" != "best" ] && i=3
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
generate_link "$i"
[ "$is_download" -eq 1 ] && i=$((i + 1)) || i=$((i - 1))
i=$((i + 1))
done
video_links="$result_links"
unset result_links