Handle if episode contains tilde in data-episode-count

This commit is contained in:
2025-09-14 18:41:38 +05:00
parent b97e812987
commit faaa8c60bd

View File

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