Created
August 18, 2014 21:54
-
-
Save martindale/282be6ef94c7533dbf7c to your computer and use it in GitHub Desktop.
extract an array of tracks from a Google Music playlist table
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
var playlist = $('table tr.song-row'); | |
var tracks = []; | |
playlist.each(function(i , row) { | |
var $track = $( row ); | |
var title = $( $track.children()[0] ).text(); | |
var artist = $( $track.children()[2] ).text(); | |
tracks.push( artist + ' – ' + title ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment