1 Commits

Author SHA1 Message Date
faaa8c60bd Handle if episode contains tilde in data-episode-count 2025-09-14 18:41:38 +05:00

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);