Skip to content

Conversation

@ioerrorle
Copy link

Plays random item from semicolon-divided list.
Doesn't break anything, just add new feature.

Comment on lines +171 to +179
int index = 0;
string[] locationsArray = locations.Split(';');
if (locationsArray.Length > 1)
{
index = rnd.Next(0, locations.Length);
}

string location = locationsArray[index];

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kinda questionable, should make some kind of regex-parser for paths so they could contain semicolon symbol

@ferenctreml
Copy link

This is a definitely needed feature. Would be nice if the previous and current track couldn't be the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants