mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-30 14:44:33 +02:00
7.2
- Resume download fix
This commit is contained in:
parent
c5320cb5f3
commit
7a3675fc2f
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.tonikelope</groupId>
|
<groupId>com.tonikelope</groupId>
|
||||||
<artifactId>MegaBasterd</artifactId>
|
<artifactId>MegaBasterd</artifactId>
|
||||||
<version>7.1</version>
|
<version>7.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -119,7 +119,7 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
|
|||||||
_exit = false;
|
_exit = false;
|
||||||
_progress_watchdog_lock = new Object();
|
_progress_watchdog_lock = new Object();
|
||||||
_last_download_url = null;
|
_last_download_url = null;
|
||||||
_provision_ok = true;
|
_provision_ok = false;
|
||||||
_progress = 0L;
|
_progress = 0L;
|
||||||
_notified = false;
|
_notified = false;
|
||||||
_main_panel = main_panel;
|
_main_panel = main_panel;
|
||||||
@ -165,7 +165,7 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
|
|||||||
_exit = false;
|
_exit = false;
|
||||||
_progress_watchdog_lock = new Object();
|
_progress_watchdog_lock = new Object();
|
||||||
_last_download_url = null;
|
_last_download_url = null;
|
||||||
_provision_ok = true;
|
_provision_ok = false;
|
||||||
_progress = 0L;
|
_progress = 0L;
|
||||||
_notified = false;
|
_notified = false;
|
||||||
_main_panel = download.getMain_panel();
|
_main_panel = download.getMain_panel();
|
||||||
@ -976,7 +976,7 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
|
|||||||
_provision_ok = false;
|
_provision_ok = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (_file_name == null) {
|
if (_file_name == null && !_restart) {
|
||||||
|
|
||||||
file_info = getMegaFileMetadata(_url, getMain_panel().getView(), retry);
|
file_info = getMegaFileMetadata(_url, getMain_panel().getView(), retry);
|
||||||
|
|
||||||
@ -1010,18 +1010,6 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (_restart) {
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
insertDownload(_url, _ma.getFull_email(), _download_path, _file_name, _file_key, _file_size, _file_pass, _file_noexpire, _custom_chunks_dir);
|
|
||||||
|
|
||||||
_provision_ok = true;
|
|
||||||
|
|
||||||
} catch (SQLException ex) {
|
|
||||||
|
|
||||||
_status_error = "Error registering download: file is already downloading.";
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
_provision_ok = true;
|
_provision_ok = true;
|
||||||
|
@ -54,7 +54,7 @@ import javax.swing.UIManager;
|
|||||||
*/
|
*/
|
||||||
public final class MainPanel {
|
public final class MainPanel {
|
||||||
|
|
||||||
public static final String VERSION = "7.1";
|
public static final String VERSION = "7.2";
|
||||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||||
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||||
public static final int STREAMER_PORT = 1337;
|
public static final int STREAMER_PORT = 1337;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 190 KiB |
Loading…
x
Reference in New Issue
Block a user