feat: add random song addition/removal to queue #1

Closed
xamcost wants to merge 2 commits from feat/random-song-addition into main
xamcost commented 2026-02-14 00:43:53 +00:00 (Migrated from codeberg.org)

Hi there! Thank you for this very nice app, I recently started using it on a regular basis and love it. This PR suggests a modest contribution, enabling users to add (totally) random songs to the queue. This could be a good complement to radio mode, for users who don't seek for similar songs especially, or whose library isn't stuffed/maintained well enough to feed a proper radio.

Some notes about the implementation / self critic:

  • it defines a random mode to avoid conflicting with radio mode. So when one mode is switched on, the other is switched off.
  • the number of random songs added to the queue when toggling random mode is left to the default of the API (i.e. 50)
  • when switching the random mode on, songs are added after the one currently playing without interrupting it. As an aparte, it could be nice from a user perspective to do something similar for radio mode.

Of course, this implementation is just a suggestion. No worries if you don't want to adopt it at all.

Thanks again!

Hi there! Thank you for this very nice app, I recently started using it on a regular basis and love it. This PR suggests a modest contribution, enabling users to add (totally) random songs to the queue. This could be a good complement to radio mode, for users who don't seek for similar songs especially, or whose library isn't stuffed/maintained well enough to feed a proper radio. Some notes about the implementation / self critic: - it defines a random mode to avoid conflicting with radio mode. So when one mode is switched on, the other is switched off. - the number of random songs added to the queue when toggling random mode is left to the default of the API (i.e. 50) - when switching the random mode on, songs are added after the one currently playing without interrupting it. As an aparte, it could be nice from a user perspective to do something similar for radio mode. Of course, this implementation is just a suggestion. No worries if you don't want to adopt it at all. Thanks again!
thelinuxcast commented 2026-02-18 06:16:18 +00:00 (Migrated from codeberg.org)

Thanks for this! I applied your changes manually since my codebase had been refactored, and added automatic queue refill on top. You're credited as co-author in the commit. Closing since the feature is merged.

daf8509290

Thanks for this! I applied your changes manually since my codebase had been refactored, and added automatic queue refill on top. You're credited as co-author in the commit. Closing since the feature is merged. daf85092905ff33cb8fa22e75cf8830ed94dda7d

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thelinuxcast/sonic-tui!1
No description provided.