Fix log messages
This commit is contained in:
parent
afe482dfe1
commit
55760a1b7d
|
@ -81,9 +81,8 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
|
||||||
.header("Referer", model.getSite().getBaseUrl())
|
.header("Referer", model.getSite().getBaseUrl())
|
||||||
.header("Connection", "keep-alive")
|
.header("Connection", "keep-alive")
|
||||||
.build();
|
.build();
|
||||||
int tries = 1;
|
|
||||||
Exception lastException = null;
|
Exception lastException = null;
|
||||||
for (int i = 0; i <= 10; i++) {
|
for (int tries = 1; tries <= 10; tries++) {
|
||||||
try (Response response = client.execute(request)) {
|
try (Response response = client.execute(request)) {
|
||||||
if (response.isSuccessful()) {
|
if (response.isSuccessful()) {
|
||||||
String body = response.body().string();
|
String body = response.body().string();
|
||||||
|
|
Loading…
Reference in New Issue