rdio-enhancer icon indicating copy to clipboard operation
rdio-enhancer copied to clipboard

Add the Play Later Queue to a playlist

Open dan-dr opened this issue 10 years ago • 4 comments
trafficstars

http://help.rdio.com/customer/en/portal/questions/14270519-export-play-later-into-a-new-playlist?b_id=681&new=14270519

the OP and me have a really bloated Play Later queue (it's actually very comfortable) but Rdio is so slow it takes forever to scroll to the bottom. I've dabbled inside the code and can't figure out how to add this functionality. I'm guessing it's easier for someone who knows their stuff.

Thanks

dan-dr avatar Aug 28 '15 13:08 dan-dr

well looking in the readme I see:

v 1.4

  • New features
    • Save current queue or station as a playlist

but i'm guessing it's pretty old and I can't find this feature in the code

dan-dr avatar Aug 28 '15 13:08 dan-dr

Thanks for the request, this was a feature in the 1.x version of Rdio Enhancer which was for the old Rdio design/api. In 2012 they changed to the current site backend and API and Rdio Enhancer was re-written from scratch for the new API, so all of the features had to be re-impelented one by one.

This was one feature that I never got around to adding in the new version (mostly because it was a feature I never used because I don't use the Play Later queue).

If someone wanted to do the research into grabbing the track list for the Play Later queue from the API, I could take it the rest of the way to create a playlist.

matt-h avatar Aug 31 '15 18:08 matt-h

I've actually hacked a way:

jQuery.each(R.player.queue._collection.models, function(index, track) {
     R.enhancer.current_playlist.model.add(track.get('source'));
});

I'm running the above code when inside an empty playlist and it adds the play later queue to it (takes a while)

Though I would rather have a "BACKUP QUEUE" button next to the CLEAR button when you hover on the Play Later, which opens the playlist menu and gives the possibility of creating a new playlist

image

Here :)

dan-dr avatar Aug 31 '15 22:08 dan-dr

Thanks for that code snippet, that should be enough to create a button.

matt-h avatar Sep 02 '15 17:09 matt-h