Skip to content

Commit

Permalink
Ignore chips in parsePromoGames in JsoupFunPayParser
Browse files Browse the repository at this point in the history
  • Loading branch information
panic08 authored Oct 5, 2024
2 parents abe4203 + 638d96d commit de57d56
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ public Lot parseLot(long lotId) {
String counterHrefAttributeValue = counterItem.attr("href");

//Skip chips, as they are not supported yet
if (counterHrefAttributeValue.contains("chips")) {
continue;
}
if (counterHrefAttributeValue.contains("chips")) continue;

long counterLotId = Integer.parseInt(counterHrefAttributeValue.substring(24, counterHrefAttributeValue.length() - 1));

Expand Down Expand Up @@ -186,6 +184,9 @@ public List<PromoGame> parsePromoGames(@NonNull String query) {
Element titleElement = promoGameElement.getElementsByClass("game-title").first().selectFirst("a");
String titleElementHrefAttributeValue = titleElement.attr("href");

//Skip chips, as they are not supported yet
if (titleElementHrefAttributeValue.contains("chips")) continue;

long lotId = Long.parseLong(titleElementHrefAttributeValue.substring(24, titleElementHrefAttributeValue.length() - 1));
String title = titleElement.text();

Expand Down

0 comments on commit de57d56

Please sign in to comment.