|
@@ -105,7 +105,6 @@ public class VideoDownloader {
|
|
|
try (InputStream inputStream = connection.getInputStream();
|
|
|
OutputStream outputStream = Files.newOutputStream(file.toPath())) {
|
|
|
byte[] buffer = new byte[1024 * 1024];
|
|
|
- long lastReadTime = System.currentTimeMillis();
|
|
|
int bytesRead;
|
|
|
int downloadLength = 0;
|
|
|
while ((bytesRead = inputStream.read(buffer)) != -1) {
|