- 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
- Make sure you have a cookie like
AKCNTYPE=WIFI; AKID=abc; token=expires...
and put it in~/cookie
- Find the name and day of the artist you want to load, replace whitespace with underscores.
- Launch the script:
./itunes-festival.sh day artist
- Have fun.
-
-
Save PyYoshi/85db0a8cd364accd93fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/201209$tag/${artist}_desktop_vod.m3u8 | head -n5 | tail -n1) | |
files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201209$tag/$index) | |
for i in $files; do | |
curl -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201209$tag/5500_256/$i > $i; | |
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