fix新增过滤纯音乐
This commit is contained in:
parent
face663b6e
commit
e58cb29656
@ -126,7 +126,7 @@ public class MusicToolsServiceImpl implements IMusicToolsService {
|
||||
example.createCriteria().andFileLike(tmpPath.replace(File.separator, replacement) + "%");
|
||||
}
|
||||
main = musicDataDao.selectByExample(example, delPath);
|
||||
}
|
||||
}else {
|
||||
tmpPath = tmpPath.replace(File.separator, replacement)
|
||||
.replace("+", "\\+")
|
||||
.replace("[", "\\[")
|
||||
@ -134,6 +134,7 @@ public class MusicToolsServiceImpl implements IMusicToolsService {
|
||||
.replace(")", "\\)")
|
||||
.replace("]", "\\]");
|
||||
main.addAll(musicDataDao.selectByRegexp(tmpPath + replacement + "([^" + replacement + "]+)$", delPath));
|
||||
}
|
||||
|
||||
if (!path.equals(AppData.defaultMusicPath) && !"root".equals(path)) {
|
||||
MusicData t2 = new MusicData();
|
||||
|
Loading…
Reference in New Issue
Block a user