diff --git a/src/main/java/com/yutou/nas/Controllers/MusicController.java b/src/main/java/com/yutou/nas/Controllers/MusicController.java index 685c9f6..7d279b7 100644 --- a/src/main/java/com/yutou/nas/Controllers/MusicController.java +++ b/src/main/java/com/yutou/nas/Controllers/MusicController.java @@ -170,7 +170,7 @@ public class MusicController { } List 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(); diff --git a/src/main/java/com/yutou/nas/Services/impl/MusicToolsServiceImpl.java b/src/main/java/com/yutou/nas/Services/impl/MusicToolsServiceImpl.java index 3df25ba..326c6bf 100644 --- a/src/main/java/com/yutou/nas/Services/impl/MusicToolsServiceImpl.java +++ b/src/main/java/com/yutou/nas/Services/impl/MusicToolsServiceImpl.java @@ -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; }