Skip to content

Commit

Permalink
Revert "Revert some changes"
Browse files Browse the repository at this point in the history
This reverts commit 066c4e7.
  • Loading branch information
KevCui committed Oct 7, 2022
1 parent 066c4e7 commit 3afcabf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions animepahe-dl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ download_source() {
get_episode_link() {
# $1: episode number
local i s d r=""
i=$("$_JQ" -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .anime_id' --arg num "$1" < "$_SCRIPT_PATH/$_ANIME_NAME/$_SOURCE_FILE")
s=$("$_JQ" -r '.data[] | select((.episode | tonumber) == ($num | tonumber)) | .session' --arg num "$1" < "$_SCRIPT_PATH/$_ANIME_NAME/$_SOURCE_FILE")
[[ "$i" == "" ]] && print_warn "Episode $1 not found!" && return
[[ "$s" == "" ]] && print_warn "Episode $1 not found!" && return
d="$(get "${_API_URL}?m=links&id=${s}&p=kwik" | "$_JQ" -r '.data[]')"

if [[ -n "${_ANIME_AUDIO:-}" ]]; then
Expand Down

0 comments on commit 3afcabf

Please sign in to comment.