Skip to content

Instantly share code, notes, and snippets.

@jwpeddle
Last active December 23, 2015 15:09
Show Gist options
  • Save jwpeddle/6653580 to your computer and use it in GitHub Desktop.
Save jwpeddle/6653580 to your computer and use it in GitHub Desktop.
Export rdio playlist to tab seperated list
javascript:(function() {
track = 'Title\tArtist\tAlbum\tDuration\n';
$('.PlaylistPage .Track')
.each(function() {
info = [];
info.push($(this).find('.name > a').text().trim());
info.push($(this).find('.metadata > a:first').text().trim());
info.push($(this).find('.metadata > a:nth-child(2)').text().trim());
info.push('00:0' + $(this).find('.duration').text().trim());
track += info.join('\t') + '\n';
});
window.open('data:text/plain;charset=utf-8,' + encodeURIComponent(track), '');
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment