File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/java/mServer/crawler/sender/newsearch Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ apply from: "${project.rootDir}/gradle/eclipse.gradle"
15
15
sourceCompatibility = 1.8
16
16
targetCompatibility = 1.8
17
17
group = ' de.mediathekview'
18
- version = ' 3.0.11 '
18
+ version = ' 3.1.0 '
19
19
20
20
def jarName = ' MServer.jar'
21
21
def mainClass = ' mServer.Main'
Original file line number Diff line number Diff line change 8
8
import com .sun .jersey .api .client .Client ;
9
9
import com .sun .jersey .api .client .ClientResponse ;
10
10
import com .sun .jersey .api .client .WebResource ;
11
+ import com .sun .jersey .api .client .filter .GZIPContentEncodingFilter ;
11
12
12
13
import de .mediathekview .mlib .Const ;
13
14
import de .mediathekview .mlib .tool .Log ;
@@ -53,6 +54,7 @@ public class ZDFClient {
53
54
54
55
public ZDFClient () {
55
56
client = Client .create ();
57
+ client .addFilter (new GZIPContentEncodingFilter (true ));
56
58
gson = new Gson ();
57
59
}
58
60
@@ -124,12 +126,11 @@ private String loadApiTokenVideos() {
124
126
private JsonObject handleOk (ClientResponse response ) {
125
127
increment (RunSender .Count .ANZAHL );
126
128
127
- String jsonOutput = response .getEntity (String .class );
128
-
129
- long bytes = jsonOutput .length ();
129
+ long bytes = response .getLength ();
130
130
increment (RunSender .Count .SUM_DATA_BYTE , bytes );
131
131
increment (RunSender .Count .SUM_TRAFFIC_BYTE , bytes );
132
132
133
+ String jsonOutput = response .getEntity (String .class );
133
134
return gson .fromJson (jsonOutput , JsonObject .class );
134
135
}
135
136
You can’t perform that action at this time.
0 commit comments