Add random_exclude_pattern option for random songs

This commit is contained in:
Laurent Arnoud
2018-12-01 14:55:03 +01:00
parent 20d660177d
commit 69f49d558d
6 changed files with 17 additions and 5 deletions

View File

@@ -546,7 +546,7 @@ struct Connection
int AddSong(const std::string &, int = -1); // returns id of added song
int AddSong(const Song &, int = -1); // returns id of added song
bool AddRandomTag(mpd_tag_type, size_t, std::mt19937 &rng);
bool AddRandomSongs(size_t number, std::mt19937 &rng);
bool AddRandomSongs(size_t number, std::string random_exclude_pattern, std::mt19937 &rng);
void Add(const std::string &path);
void Delete(unsigned int pos);
void PlaylistDelete(const std::string &playlist, unsigned int pos);