Skip to content

Instantly share code, notes, and snippets.

@abhiomkar
Created June 19, 2011 19:30
Show Gist options
  • Save abhiomkar/1034637 to your computer and use it in GitHub Desktop.
Save abhiomkar/1034637 to your computer and use it in GitHub Desktop.
// @ 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
@lakshgandikota
Copy link

Thanks for sharing Abhi!!!

@abhiomkar
Copy link
Author

you're welcome laks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment