File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed
src/main/java/com/ignorelist/kassandra/steam/scraper Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 99 <dependency >
1010 <groupId >com.fasterxml.jackson.core</groupId >
1111 <artifactId >jackson-databind</artifactId >
12- <version >2.1.5 </version >
12+ <version >2.9.6 </version >
1313 <type >jar</type >
1414 </dependency >
1515 <dependency >
3636 <dependency >
3737 <groupId >com.google.guava</groupId >
3838 <artifactId >guava</artifactId >
39- <version >25.1 -jre</version >
39+ <version >26.0 -jre</version >
4040 </dependency >
4141 <dependency >
4242 <groupId >com.technofovea</groupId >
5959 <version >6.14.3</version >
6060 <scope >test</scope >
6161 </dependency >
62+ <dependency >
63+ <groupId >commons-beanutils</groupId >
64+ <artifactId >commons-beanutils</artifactId >
65+ <version >1.9.3</version >
66+ </dependency >
6267 </dependencies >
6368 <properties >
6469 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
Original file line number Diff line number Diff line change 2727import java .util .Set ;
2828import org .antlr .runtime .RecognitionException ;
2929import org .apache .commons .io .IOUtils ;
30+ import org .apache .commons .jxpath .ClassFunctions ;
3031import org .apache .commons .jxpath .JXPathContext ;
3132
3233/**
@@ -91,7 +92,8 @@ public synchronized VdfNode getAppsNode() {
9192 }
9293 try {
9394 JXPathContext pathContext =JXPathContext .newContext (getRootNode ());
94- appsNode =(VdfNode ) pathContext .getValue ("//children[name='apps']" );
95+ pathContext .setFunctions (new ClassFunctions (XPathFunctions .class , "xxx" ));
96+ appsNode =(VdfNode ) pathContext .getValue ("//children[xxx:equalsIgnoreCase(name, 'apps')]" );
9597 return appsNode ;
9698 } catch (IOException |RecognitionException ex ) {
9799 System .err .println (ex );
Original file line number Diff line number Diff line change 1+ /*
2+ * To change this license header, choose License Headers in Project Properties.
3+ * To change this template file, choose Tools | Templates
4+ * and open the template in the editor.
5+ */
6+ package com .ignorelist .kassandra .steam .scraper ;
7+
8+ /**
9+ *
10+ * @author poison
11+ */
12+ public class XPathFunctions {
13+
14+ public static boolean equalsIgnoreCase (String a , String b ) {
15+ return null !=a &&null !=b &&a .equalsIgnoreCase (b );
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments