Created
June 19, 2011 19:30
-
-
Save abhiomkar/1034637 to your computer and use it in GitHub Desktop.
This file contains 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
// @ Abhinay Omkar | |
// In Javascript Console at Bombay Production Page while any song is running | |
var loop = 0, | |
songs_list = [], | |
StopThis = function() { clearInterval(loop) }; | |
loop = setInterval( | |
function() { | |
prev_song_link = ''; | |
song_direct_link = $("#jquery_jplayer audio").attr('src'); | |
if (songs_list.indexOf(song_direct_link) >= 0) { | |
console.log("Collected the download links! Have Fun! :)"); | |
StopThis(); | |
} | |
songs_list.push(song_direct_link); | |
if (song_direct_link != prev_song_link) { | |
// Go to Next Song | |
$("#jplayer_next").click(); | |
prev_song_link = song_direct_link; | |
} | |
}, 500); | |
songs_list.join(' ') | |
// In Command Prompt (Mac/Unix/Linux) | |
// wget copy_paste_the_output_here --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30" -c |
you're welcome laks! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing Abhi!!!