Fix log messages

This commit is contained in:
0xboobface 2019-12-26 23:43:32 +01:00
parent afe482dfe1
commit 55760a1b7d
1 changed files with 1 additions and 2 deletions

View File

@ -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();