spotify-playlist-export icon indicating copy to clipboard operation
spotify-playlist-export copied to clipboard

Enhancement: Download all CSV

Open chazkii opened this issue 10 years ago • 3 comments

As a lazy person, I would like to simply download all playlists as separate CSVs for backup/archives purposes in one click.

When I get time to do it, I can assign this to myself. May be in a weeks time or so.

chazkii avatar Jan 07 '15 08:01 chazkii

Great! That would be a very nice feature

jal278 avatar Feb 04 '15 17:02 jal278

Here's my really hacky work-around to make the UI load everything. You paste this into the console:

$.fn.simulateClick = function() {
    return this.each(function() {
        if('createEvent' in document) {
            var doc = this.ownerDocument,
                evt = doc.createEvent('MouseEvents');
            evt.initMouseEvent('click', true, true, doc.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
            this.dispatchEvent(evt);
        } else {
            this.click(); // IE
        }
    });
}

window.TryAgain = function() {
  var x = $('.load:contains("More")');
  if (x.length == 0) {
    return;
  }
  x.simulateClick();
  window.setTimeout(TryAgain, 2000);
};

TryAgain()

bslatkin avatar Jun 30 '15 18:06 bslatkin

@bslatkin I can't seem to get that code to work. Console isn't showing any errors, it's just not doing anything. Any thoughts?

itsbrex avatar Sep 28 '16 19:09 itsbrex