Last active
January 28, 2026 03:49
-
-
Save avrahamappel/fb11b7e2f8e8b3f004179fddadbea053 to your computer and use it in GitHub Desktop.
Download TorahAnytime video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| read tr_url && curl -I -s $tr_url | rg location | cut -d' ' -f2 | tr -d '\r\n' | read url && response=$(curl -s "$(echo $url | sed -E 's@(http.*)(www\.)?torah@\1api.torah@')") && video_url=$(echo "$response" | jq -r '.video_url') && title=$(echo "$response" | jq -r '.title') && extension="${video_url##*.}" && filename="${title}.${extension}" && curl "$video_url" -o "$filename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment