public class MetadataUtil extends Object
Constructor and Description |
---|
MetadataUtil() |
Modifier and Type | Method and Description |
---|---|
static float |
calculateScore(String searchTitle,
String matchTitle)
Return the best score for a title when compared to the search string.
|
static boolean |
isValidImdbId(String imdbId)
Checks if is valid imdb id.
|
static String |
parseRunningTime(String in,
String regex)
Parses the running time.
|
static String |
removeNonSearchCharacters(String s)
For the purposes of searching it will, keep only alpha numeric characters and '&.
|
public static float calculateScore(String searchTitle, String matchTitle)
searchTitle
- the search titlematchTitle
- the match titlepublic static String parseRunningTime(String in, String regex)
in
- the inregex
- the regexpublic static String removeNonSearchCharacters(String s)
s
- the spublic static boolean isValidImdbId(String imdbId)
imdbId
- the imdb idCopyright © 2012–2019 tinyMediaManager. All rights reserved.