Last active
April 25, 2021 05:31
-
-
Save yonat/b65bb64ef9caee1a8375a9c3ef54ee22 to your computer and use it in GitHub Desktop.
Download zoom recordings
This file contains 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
#!/bin/sh | |
# courtesy of https://github.com/ytdl-org/youtube-dl/issues/23573#issuecomment-631115716 | |
url="${1%%\?*}" | |
jar=$(mktemp) | |
mp4=$(curl -s -c "$jar" "$url" | grep video/mp4 | grep -o 'https:[^"]*') | |
file=$(echo "$mp4" | grep -o "[^/? ]*\.mp4") | |
echo "Downloading $file" | |
curl -b "$jar" -o "$file" -e "$url" "$mp4" | |
rm "$jar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment