0

Anyone know of a way to auto-grab songs?

I want to make a playlist of songs so that I can make a playlist and listen to them. I've tried making a script but it somewhat worked, it opens the menu but it doesn't add it to the playlist. Here is my code:

function grab_song(){
    $(".icon-grab").click();
    $(".pop-menu ul li:first-child").click();
}

setTimeout("grab_song()", 5000);

The code is simple, and it will grab the song. But it will open the menu, and not grab the song. I used inspect element to try and disect the code to select the code to add it to the playlist, but so far, it just opens the menu.

Here is a screenshot of what I'm dealing with here:

http://i.imgur.com/1JL4z3I.png

I'm sorry if this is a newb question, I'm learning jQuery still.

If anyone can help please do. Thanks!

2
Contributors
4
Replies
30
Views
2 Years
Discussion Span
Last Post by Djmann1013
0

It will grab the song currently playing. I can make screenshots of the issue if needed.

0

You say the problem is that it won't grab the song, and yet you're not showing us the function to grab the song.

0

grab_song is the function to grab it. It selects the button but it wont select the playlist (this line):

$(".pop-menu ul li:first-child").click();

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.