Difference between revisions of "Quicktime"

From Jon's Wiki
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Apple are a shower of bastards who don't want you to download their trailers. Here's how to do it anyway:
+
Apple are a shower of bastards who don't want you to download their trailers. Here's a shell script to do it anyway:
  
  wget -U "QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)" \
+
  #!/bin/sh
  http://movies.apple.com/movies/independent/capitalismalovestory/capitalismalovestory-tlr1_h1080p.mov
+
 +
APPLEBULLSHIT='QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)'
 +
URL=$1
 +
  TMPFILE="/tmp/yoinktrailer-`date +%Y%m%d-%H%M%S`"
 +
wget -U "$APPLEBULLSHIT" -q -O $TMPFILE $URL
 +
 +
TRAILER=`strings $TMPFILE|grep '.mov$'|head -1`
 +
TRAILERURL="`dirname $URL`/$TRAILER"
 +
wget -U "$APPLEBULLSHIT" -O $TRAILER $TRAILERURL \
 +
    && touch $TRAILER && rm $TMPFILE
  
Right-click and copy the link URL of the 1080p images on their HD trailer pages, and add the extra "h" before the 1080p.mov
+
Then you just enter this at the command line:
 +
 
 +
yoink <nowiki>http://movies.apple.com/movies/independent/capitalismalovestory/capitalismalovestory-tlr1_1080p.mov</nowiki>
 +
 
 +
Right-click and copy the link URL from Apple trailers.

Latest revision as of 01:53, 13 May 2011

Apple are a shower of bastards who don't want you to download their trailers. Here's a shell script to do it anyway:

#!/bin/sh

APPLEBULLSHIT='QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)'
URL=$1
TMPFILE="/tmp/yoinktrailer-`date +%Y%m%d-%H%M%S`"
wget -U "$APPLEBULLSHIT" -q -O $TMPFILE $URL

TRAILER=`strings $TMPFILE|grep '.mov$'|head -1`
TRAILERURL="`dirname $URL`/$TRAILER"
wget -U "$APPLEBULLSHIT" -O $TRAILER $TRAILERURL \
    && touch $TRAILER && rm $TMPFILE

Then you just enter this at the command line:

yoink http://movies.apple.com/movies/independent/capitalismalovestory/capitalismalovestory-tlr1_1080p.mov

Right-click and copy the link URL from Apple trailers.