From af81fda1c4d85691c89c466d198d46fdb4d02864 Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Thu, 13 Apr 2023 21:14:12 +0200 Subject: [PATCH] Download highest resolution by default --- animepahe-dl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animepahe-dl.sh b/animepahe-dl.sh index 4717818..57f363c 100755 --- a/animepahe-dl.sh +++ b/animepahe-dl.sh @@ -192,7 +192,7 @@ get_episode_link() { fi if [[ -z "${r:-}" ]]; then - grep url <<< "$o" | grep kwik | awk -F '"' '{print $2}' + grep kwik <<< "$l" | tail -1 | grep kwik | awk -F '"' '{print $1}' else awk -F '" ' '{print $1}' <<< "$r" | head -1 fi