Compare commits
2 Commits
b97e812987
...
72aafc1d70
Author | SHA1 | Date | |
---|---|---|---|
72aafc1d70 | |||
faaa8c60bd
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user