Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: Samvh on July 09, 2014, 05:37:43 AM

Title: Trim dynamic playlist
Post by: Samvh on July 09, 2014, 05:37:43 AM
Hi,

[Edit: part of the functionality I suggested is already available, updated post.]

I just recently started using Rockbox and really love it (on a Sansa Clip+). However, there is one feature I really miss: clearing the currently queued songs in the dynamic playlist without stopping playback. I know I can clear the playlist by using stop, or by rebooting, but I would like to be able to do it 'on the fly'.

Sometimes I'm listening to a song, and decide it will be the last, but there are still songs queued. I don't want to abruptly stop the current song, I also don't want to have to stay ready to stop playback when it finishes so the next song doesn't start. Currently I believe the only way to clear the rest of the queue is to remove each song by hand?

Another option I would really like is the "Play next" option but then shuffled (i.e. "Play next shuffled"), such that the dynamic playlist is cleared after the current song, but still the selected music is appended to the playlist in a random order. (Queue and insert don't clear the rest of the playlist.)

I hope others see the benefit of such functionality :)

Kind regards,
Sam
Title: Re: Trim dynamic playlist
Post by: Samvh on July 09, 2014, 05:40:09 AM
[Edit: I found out some of the functionality is in fact already available (great!).]
Title: Re: Trim dynamic playlist
Post by: silvertree on July 10, 2014, 06:36:05 PM
What feature did you discover?
Title: Re: Trim dynamic playlist
Post by: Samvh on July 11, 2014, 05:24:23 AM
Sorry that was unclear. The functionality I found to be already available, I described earlier in my post, but removed when I updated the post. I thought there was no option to clear playlist + queue, but this is in fact what "Play next" does. Still, I think it would be nice to be able to trim the playlist separately.
Title: Re: Trim dynamic playlist
Post by: chrisjj on December 16, 2016, 09:38:35 AM
[Edit: I found out some of the functionality is in fact already available (great!).]

Did you find how to clear from the playlist all but the current track?
Title: Re: Trim dynamic playlist
Post by: Bilgus on December 28, 2016, 02:23:06 PM
A lua x-mas present for you as well

Code: [Select]
--PlaylistClear.lua
rb.playlist_remove_all_tracks()
rb.splash(1, "Playlist Cleared")
rb.sleep(2 * rb.HZ)
Title: Re: Trim dynamic playlist
Post by: chrisjj on December 28, 2016, 06:00:36 PM
Thanks. So rb.playlist_remove_all_tracks() doesn't remove all tracks?