Skip to content

searching for tracks considers the search pattern in filenames too#818

Open
jensgoe wants to merge 1 commit into
abarisain:masterfrom
jensgoe:SearchInFilenamesToo
Open

searching for tracks considers the search pattern in filenames too#818
jensgoe wants to merge 1 commit into
abarisain:masterfrom
jensgoe:SearchInFilenamesToo

Conversation

@jensgoe

@jensgoe jensgoe commented Sep 18, 2016

Copy link
Copy Markdown

Searching for tracks currently uses the MPD search command with type "any". The type "any" only considers tags like id3 or something. The type "filename" is a special type not included by "any". This pull request allows MPDroid to find files with the matching search pattern in filenames too.

}

if (arrayMusic == null) {
return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if it returns here you don't get the chance to match the filename ...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thats right, but i thought arrayMusic is only null if an error occured (exception catched) and i don't wanted to do another search in that case. arrayMusic should be an empty list if nothing was found.

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