Last active
March 30, 2016 18:43
-
-
Save jpcercal/700bc031b9ac6d4754059d5ca133fb1b to your computer and use it in GitHub Desktop.
Export Goove Music (Microsoft)
This file contains hidden or 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
| /** | |
| * 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