Archive those Patreon vimeo videos using selenium, firefox, and youtube-dl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
401 B

#!/bin/bash
function ytdlPatreon {
youtube-dl -f 'bestvideo[height=720]+bestaudio[ext=m4a]'\
https://player.vimeo.com/video/$1 \
--referer https://www.patreon.com/ \
--download-archive $HOME/.cache/youtube-dl.log
}
if ! [ -z $1 ]; then
id=$1
else
# activate our patreon amazingness
source ./env/bin/activate
id=$(python3 patreon.py)
fi
ytdlPatreon "$id"