Skip to content

Instantly share code, notes, and snippets.

@tderosier
Forked from badboy/HOWTO.md
Created March 16, 2014 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tderosier/9576214 to your computer and use it in GitHub Desktop.
Save tderosier/9576214 to your computer and use it in GitHub Desktop.
  1. Get your cookie. Either proxy your iPhone/iPod/iPad and record the cookie using the proxy server of your choice or capture the request using your AP with Wireshark or similar
  2. Make sure you have a cookie like AKCNTYPE=WIFI; AKID=abc; token=expires... and put it in ~/cookie
  3. Find the name and day of the artist you want to load, replace whitespace with underscores.
  4. Launch the script: ./itunes-festival.sh day artist
  5. Have fun.

and because I'm not the creator of this script: henne war's!

#!/bin/bash
cookie=$(cat ./cookie)
tag=$1
artist=$2
mkdir -p $artist
cd $artist
index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201309$tag/v3/${artist}_desktop_vod.m3u8 | tail -n1)
files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201309$tag/v3/$index)
for i in $files; do
if [[ "$i" =~ "fileSeq" ]]; then
curl -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201309$tag/v3/8500_256/$i > $i
fi
done
cat fileSequence* > $artist.ts
mv $artist.ts ../
cd ..
rm -r $artist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment