1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

* fixed clean-up regex

This commit is contained in:
Reinhard Pointner 2011-07-08 05:22:36 +00:00
parent b59ab7e6ee
commit c6fe1e782f

View File

@ -154,12 +154,12 @@ class MovieHashMatcher implements AutoCompleteMatcher {
// search by file name // search by file name
if (options.isEmpty()) { if (options.isEmpty()) {
String query = getName(movieFile).replaceAll("\\p{Punct}", "").trim(); String query = getName(movieFile).replaceAll("\\p{Punct}+", " ").trim();
options = service.searchMovie(query); options = service.searchMovie(query);
// search by folder name // search by folder name
if (options.isEmpty()) { if (options.isEmpty()) {
query = getName(movieFile.getParentFile()).replaceAll("\\p{Punct}", "").trim(); query = getName(movieFile.getParentFile()).replaceAll("\\p{Punct}+", " ").trim();
options = service.searchMovie(query); options = service.searchMovie(query);
} }
} }