mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-29 16:50:10 +02:00
Minor code style clean up
This commit is contained in:
@@ -184,7 +184,8 @@ class DownloadFileThread extends Thread {
|
|||||||
} else {
|
} else {
|
||||||
fos = new FileOutputStream(saveAs);
|
fos = new FileOutputStream(saveAs);
|
||||||
}
|
}
|
||||||
byte[] data = new byte[1024 * 256]; int bytesRead;
|
byte[] data = new byte[1024 * 256];
|
||||||
|
int bytesRead;
|
||||||
while ( (bytesRead = bis.read(data)) != -1) {
|
while ( (bytesRead = bis.read(data)) != -1) {
|
||||||
try {
|
try {
|
||||||
observer.stopCheck();
|
observer.stopCheck();
|
||||||
|
@@ -76,7 +76,8 @@ class DownloadVideoThread extends Thread {
|
|||||||
int tries = 0; // Number of attempts to download
|
int tries = 0; // Number of attempts to download
|
||||||
do {
|
do {
|
||||||
InputStream bis = null; OutputStream fos = null;
|
InputStream bis = null; OutputStream fos = null;
|
||||||
byte[] data = new byte[1024 * 256]; int bytesRead;
|
byte[] data = new byte[1024 * 256];
|
||||||
|
int bytesRead;
|
||||||
try {
|
try {
|
||||||
logger.info(" Downloading file: " + url + (tries > 0 ? " Retry #" + tries : ""));
|
logger.info(" Downloading file: " + url + (tries > 0 ? " Retry #" + tries : ""));
|
||||||
observer.sendUpdate(STATUS.DOWNLOAD_STARTED, url.toExternalForm());
|
observer.sendUpdate(STATUS.DOWNLOAD_STARTED, url.toExternalForm());
|
||||||
|
Reference in New Issue
Block a user