[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

1.2 release of youtube script



They tried to break my script :(
They only broke it for a little while.
-- 
Jon
Democracy is a sheep and two wolves deciding on what to have for lunch.
Freedom is a well armed sheep contesting the results of the decision.
#!/bin/sh

CODE=`echo $1 | sed -e 's/^.*v[=/]\([0-9A-Za-z_-]*\).*$/\1/g'`

wget -qO - http://www.youtube.com/watch?v=$CODE | sed -e '/player2.swf?video_id=/!d' -e 's/^.*player2\.swf?\(video_id=.*\)\&l=.*\&\(t=[0-9A-Za-z_-]*\).*$/http:\/\/www.youtube.com\/get_video?\1\&\2/g' | wget -c -i - -O $CODE.flv

Attachment: signature.asc
Description: Digital signature