internet4000 / radio4000

public media library system, calm, non-intrusive
https://radio4000.com
GNU General Public License v3.0
45 stars 19 forks source link

Loading a selection is not cleared by clicking on a track in channel.tracks list #414

Open 4www opened 4 years ago

4www commented 4 years ago

To reproduce:

  1. go to a channel's /tracks page.
  2. search tracks for any selection giving results
  3. load the search result in the player
  4. click any track from the all tracks list in this radio (not the list in the player, not a track which is in the player's track list)

Expected result: clicking a track (in a channel's /tracks list) not part of the player's track list, should load all tracks, and play the one that was clicked

Actual result: the clicked track is loaded, but the player's selection of tracks (from the previous search) is not cleared

Does this make sense?

oskarrough commented 4 years ago

Makes sense. So, when a track is played, we need to check:

if currentSelection && !currentSelection.contains(playedTrack) ==> reset playlist

?