Skip to content

Instantly share code, notes, and snippets.

@PyYoshi
Forked from tdragonite/HOWTO.md
Last active August 29, 2015 14:06

Revisions

  1. PyYoshi revised this gist Sep 4, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # iTunes Festival 2014 - Show Downloader
    # Variables
    # Variables
    cookie=$(cat ./cookie)
    tag=$1
    artist=$2
    @@ -13,7 +13,7 @@ mkdir -p $artist
    cd $artist

    # Fetching parts links
    echo "iTunes Festival 2014 - Start download of ${show[1]} show ($tag/09/2014)"
    echo "iTunes Festival 2014 - Start download of ${artist} show ($tag/09/2014)"
    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tail -n1)
    files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/$index)

    @@ -32,4 +32,4 @@ cat $( ls -1 *.ts | sort -n ) > $output
    mv $output ../
    cd ..
    rm -r $artist
    echo "Done."
    echo "Done."
  2. @tdragonite tdragonite revised this gist Sep 2, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -6,14 +6,14 @@ tag=$1
    artist=$2
    counter=1
    show=(${artist//_/ })
    output=${show[1]}_itf$1092014.mp4
    output=${show[1]}_itf${tag}092014.mp4

    # Making temp directory
    mkdir -p $artist
    cd $artist

    # Fetching parts links
    echo "iTunes Festival 2014 - Start download of ${show[1]} show ($1/09/2014)"
    echo "iTunes Festival 2014 - Start download of ${show[1]} show ($tag/09/2014)"
    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tail -n1)
    files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/$index)

  3. @tdragonite tdragonite revised this gist Sep 2, 2014. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,20 @@
    #!/bin/bash
    # iTunes Festival 2014 - Show Downloader
    # Variables
    # Variables
    cookie=$(cat ./cookie)
    tag=$1
    artist=$2
    counter=1
    show=(${artist//_/ })
    output=${show[1]}_itf$1092014.mp4

    # Making temp directory
    mkdir -p $artist
    cd $artist

    # Fetching parts links
    echo "iTunes Festival 2014 - Start download of $2 show ($1/09/2014)"
    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tai$
    echo "iTunes Festival 2014 - Start download of ${show[1]} show ($1/09/2014)"
    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tail -n1)
    files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/$index)

    # Download parts
    @@ -25,9 +27,9 @@ fi
    done

    # Merging parts and move in parent directory
    echo "Building: $artist.ts"
    cat $( ls -1 *.ts | sort -n ) > $artist.ts
    mv $artist.ts ../
    echo "Building: $output"
    cat $( ls -1 *.ts | sort -n ) > $output
    mv $output ../
    cd ..
    rm -r $artist
    echo "Done."
  4. @tdragonite tdragonite revised this gist Sep 2, 2014. 1 changed file with 16 additions and 6 deletions.
    22 changes: 16 additions & 6 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,33 @@
    #!/bin/bash

    # iTunes Festival 2014 - Show Downloader
    # Variables
    cookie=$(cat ./cookie)
    tag=$1
    artist=$2
    counter=1
    counter=1

    # Making temp directory
    mkdir -p $artist
    cd $artist

    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tail -n1)

    # Fetching parts links
    echo "iTunes Festival 2014 - Start download of $2 show ($1/09/2014)"
    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tai$
    files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/$index)
    # Download parts
    for i in $files; do
    if [[ "$i" =~ "song" ]]; then
    echo "Downloading: $i"
    curl -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/8500_256/$i > $counter.ts
    counter=$((counter+1))
    counter=$((counter+1))
    fi
    done
    # Merging parts and move in parent directory
    echo "Building: $artist.ts"
    cat $( ls -1 *.ts | sort -n ) > $artist.ts
    mv $artist.ts ../
    cd ..
    rm -r $artist
    rm -r $artist
    echo "Done."
  5. @tdragonite tdragonite revised this gist Sep 2, 2014. 2 changed files with 13 additions and 10 deletions.
    4 changes: 3 additions & 1 deletion HOWTO.md
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,6 @@
    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!

    Working for iTunes Festival September 2014. Also on OS X.
    Tnx to the original creator!
    19 changes: 10 additions & 9 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -3,20 +3,21 @@
    cookie=$(cat ./cookie)
    tag=$1
    artist=$2

    counter=1
    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)
    index=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/${artist}_desktop_vod.m3u8 | tail -n1)
    files=$(curl -s -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/$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
    if [[ "$i" =~ "song" ]]; then
    curl -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201409$tag/v1/8500_256/$i > $counter.ts
    counter=$((counter+1))
    fi
    done
    cat fileSequence* > $artist.ts

    cat $( ls -1 *.ts | sort -n ) > $artist.ts
    mv $artist.ts ../
    cd ..
    rm -r $artist
    rm -r $artist
  6. @badboy badboy revised this gist Sep 8, 2013. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,19 @@
    #!/bin/bash

    cookie=$(cat ~/cookie)
    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)
    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
    curl -b "$cookie" http://streaming.itunesfestival.com/auth/eu6/vod/201209$tag/5500_256/$i > $i;
    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
  7. @badboy badboy revised this gist Sep 26, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion HOWTO.md
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,6 @@
    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.
    5. Have fun.

    and because I'm not the creator of this script: henne war's!
  8. @badboy badboy created this gist Sep 16, 2012.
    6 changes: 6 additions & 0 deletions HOWTO.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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.
    19 changes: 19 additions & 0 deletions itunes-festival.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/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