Skip to content

Instantly share code, notes, and snippets.

@jpcercal
Last active March 30, 2016 18:43
Show Gist options
  • Select an option

  • Save jpcercal/700bc031b9ac6d4754059d5ca133fb1b to your computer and use it in GitHub Desktop.

Select an option

Save jpcercal/700bc031b9ac6d4754059d5ca133fb1b to your computer and use it in GitHub Desktop.
Export Goove Music (Microsoft)
/**
* Open your playlist and put the code on console (tested with Google Chrome),
* your songs will be printed on your Console too.
*
* @author João Paulo Cercal <[email protected]>
*/
var data = [];
$('.mediaRow').each(function(index, elem) {
var currentData = {};
currentData['title'] = $('.gridCol5 div', elem).attr('title');
$('.gridCol2 a', elem).each(function(i,e) {
if (i == 0) {
currentData['artist'] = $(e).text();
}
if (i == 1) {
currentData['album'] = $(e).text();
}
});
data.push(currentData);
});
console.info(data);
for (var index in data) {
console.info(data[index].artist + ';' + data[index].album + ';' + data[index].title);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment