fix新增过滤纯音乐

This commit is contained in:
Yutousama 2022-11-14 15:13:19 +08:00
parent 3cf9b7da7e
commit 007184031b
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ public class MusicController {
}
List<MusicData> list = musicTools.getMusicList(true);
if(_fieldName) {
list.removeIf(data -> data.getTitle().contains("instrumental"));
list.removeIf(data -> data.getTitle().toLowerCase().contains("instrumental"));
}
MusicData data = list.get(Tools.randomCommon(0, list.size() - 1, 1)[0]);
JSONObject json = new JSONObject();

View File

@ -156,7 +156,7 @@ public class MusicToolsServiceImpl implements IMusicToolsService {
return compare.compare(o1.getTitle(), o2.getTitle());
});
if (filter) {
list.removeIf(data -> data.getTitle().contains("instrumental"));
list.removeIf(data -> data.getTitle().toLowerCase().contains("instrumental"));
}
return list;
}