Fix search artist for some backends

This commit is contained in:
Jordi Masip 2021-07-10 18:09:40 +02:00
parent 27b0dc742c
commit 09c5d7ee51
1 changed files with 2 additions and 2 deletions

View File

@ -65,10 +65,10 @@ public class QueryReceiverActivity extends AppCompatActivity {
intent.putExtra(Constants.INTENT_EXTRA_VIEW_ALBUM, true);
if (albumId.indexOf("ar-") == 0) {
intent.putExtra(Constants.INTENT_EXTRA_NAME_ARTIST, true);
albumId = albumId.replace("ar-", "");
albumId = albumId.replaceFirst("ar-", "");
} else if (albumId.indexOf("so-") == 0) {
intent.putExtra(Constants.INTENT_EXTRA_SEARCH_SONG, name);
albumId = albumId.replace("so-", "");
albumId = albumId.replaceFirst("so-", "");
}
intent.putExtra(Constants.INTENT_EXTRA_NAME_ID, albumId);
if (name != null) {