fix新增过滤纯音乐
This commit is contained in:
parent
3cf9b7da7e
commit
007184031b
@ -170,7 +170,7 @@ public class MusicController {
|
|||||||
}
|
}
|
||||||
List<MusicData> list = musicTools.getMusicList(true);
|
List<MusicData> list = musicTools.getMusicList(true);
|
||||||
if(_fieldName) {
|
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]);
|
MusicData data = list.get(Tools.randomCommon(0, list.size() - 1, 1)[0]);
|
||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
|
@ -156,7 +156,7 @@ public class MusicToolsServiceImpl implements IMusicToolsService {
|
|||||||
return compare.compare(o1.getTitle(), o2.getTitle());
|
return compare.compare(o1.getTitle(), o2.getTitle());
|
||||||
});
|
});
|
||||||
if (filter) {
|
if (filter) {
|
||||||
list.removeIf(data -> data.getTitle().contains("instrumental"));
|
list.removeIf(data -> data.getTitle().toLowerCase().contains("instrumental"));
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user