Skip to content

Feature Request: Add dedup() method to Queue for removing duplicate tracks #1719

@Icedwolf

Description

@Icedwolf

Is your feature request related to a problem? Please describe.

Yes. I often end up with multiple repeated tracks in the queue, especially when adding large playlists or re-adding the same playlist. It would be helpful to have a built-in way to clean up these duplicates quickly without manually removing each one.


Describe the solution you'd like

I'd like to propose adding a dedup() method to the queue logic.

Proposed behavior:

  • Keeps only the first occurrence of each track in the queue (based on URI).
  • Adjusts the current track index if it shifts due to removals.
  • Regenerates the shuffle order if shuffle mode is active, to ensure consistency.

Optionally:

  • If the notify feature is enabled, send a notification indicating how many duplicate tracks were removed.

Describe alternatives you've considered



Additional context

I've already implemented this feature locally and would be happy to contribute it as a pull request if it's a good fit for the project.

Thanks for considering the request and for maintaining such a great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions