Skip to content

Instantly share code, notes, and snippets.

@jraregris
Created March 23, 2010 02:10
Show Gist options
  • Save jraregris/340782 to your computer and use it in GitHub Desktop.
Save jraregris/340782 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Requires wget, grep, and id3v2.
export tmp="tumblrtmp"
echo "Wgetting $1..." &&
`wget -q -O $tmp $1` &&
echo "Applying magic..."
export url=`grep -Po "(?<=audio_file=).*(?=&)" $tmp`
rm $tmp
wget -q $url
id3v2 -l `ls -t -1 | tail -n 1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment