Compare commits

2 Commits

View File

@ -100,6 +100,9 @@ public class KodikHtmlParserService {
private static int parseIntSafely(String value) { private static int parseIntSafely(String value) {
try { try {
if (value.contains("~")) {
return Integer.parseInt(value.split("~")[1]);
}
return Integer.parseInt(value); return Integer.parseInt(value);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
log.error(String.format("invalid number format %s", value), e); log.error(String.format("invalid number format %s", value), e);