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

Clean user-submitted data

This commit is contained in:
Reinhard Pointner 2016-04-11 21:23:10 +00:00
parent 906b5330b3
commit c6a851d251

View File

@ -5,6 +5,7 @@ import static java.util.Collections.*;
import static java.util.stream.Collectors.*; import static java.util.stream.Collectors.*;
import static net.filebot.CachedResource.*; import static net.filebot.CachedResource.*;
import static net.filebot.Logging.*; import static net.filebot.Logging.*;
import static net.filebot.similarity.Normalization.*;
import static net.filebot.util.JsonUtilities.*; import static net.filebot.util.JsonUtilities.*;
import static net.filebot.util.StringUtilities.*; import static net.filebot.util.StringUtilities.*;
import static net.filebot.web.WebRequest.*; import static net.filebot.web.WebRequest.*;
@ -602,11 +603,11 @@ public class TMDbClient implements MovieIdentificationService {
} }
public String get(Object key) { public String get(Object key) {
return fields.get(PersonProperty.valueOf(key.toString())); return get(PersonProperty.valueOf(key.toString()));
} }
public String get(PersonProperty key) { public String get(PersonProperty key) {
return fields.get(key); return replaceSpace(fields.get(key), " ").trim();
} }
public String getName() { public String getName() {