johnteslade / vimeo-downloader

Bash script to download a video from Vimeo to your computer
115 stars 39 forks source link

Extract caption, defang, and use in filename #2

Closed DrHyde closed 12 years ago

DrHyde commented 12 years ago

This extracts the video's caption from the HTML, defangs it (anything apart from A-Z, a-z, 0-9, _ or dot are replaced with a hyphen) and uses it in the output filename.

It also fixes a bug where SD videos couldn't be downloaded because the download URL had 'hd' hard-coded in it instead of using $ISHD. Maybe this is something that vimeo changed recently?

You can test it with these videos: SD: http://vimeo.com/13774625 HD: http://vimeo.com/48488523