mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-29 22:24:32 +02:00
7.59
Regression fix 7.56 and 7.57 and 7.58 in multi file splitter progressbar
This commit is contained in:
parent
2381c45b07
commit
6673191404
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tonikelope</groupId>
|
||||
<artifactId>MegaBasterd</artifactId>
|
||||
<version>7.58</version>
|
||||
<version>7.59</version>
|
||||
<packaging>jar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
/**
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,18 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2020 tonikelope
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.CryptTools.forwardMEGALinkKeyIV;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.CryptTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.CryptTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.awt.datatransfer.Transferable;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
/**
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static java.awt.Toolkit.getDefaultToolkit;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.awt.Toolkit;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.CryptTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.DBTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -285,6 +285,7 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="14" style="1"/>
|
||||
</Property>
|
||||
<Property name="selected" type="boolean" value="true"/>
|
||||
<Property name="text" type="java.lang.String" value="Enable log file"/>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
<Property name="enabled" type="boolean" value="false"/>
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
@ -321,6 +330,7 @@ public class FileGrabberDialog extends javax.swing.JDialog {
|
||||
});
|
||||
|
||||
upload_log_checkbox.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
|
||||
upload_log_checkbox.setSelected(true);
|
||||
upload_log_checkbox.setText("Enable log file");
|
||||
upload_log_checkbox.setDoubleBuffered(true);
|
||||
upload_log_checkbox.setEnabled(false);
|
||||
|
@ -1,18 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2018 tonikelope
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
@ -290,11 +283,11 @@ public class FileMergerDialog extends javax.swing.JDialog {
|
||||
|
||||
if (this._file_name != null) {
|
||||
|
||||
this.file_name_label.setText(truncateText(filechooser.getSelectedFile().getParentFile().getAbsolutePath() + "/" + this._file_name, 100));
|
||||
this.file_name_label.setText(truncateText(this._file_name, 150));
|
||||
|
||||
this.file_name_label.setToolTipText(filechooser.getSelectedFile().getParentFile().getAbsolutePath() + "/" + this._file_name);
|
||||
|
||||
this.output_folder_label.setText(truncateText(filechooser.getSelectedFile().getParentFile().getAbsolutePath(), 100));
|
||||
this.output_folder_label.setText(truncateText(filechooser.getSelectedFile().getParentFile().getAbsolutePath(), 150));
|
||||
|
||||
this.output_folder_label.setToolTipText(filechooser.getSelectedFile().getParentFile().getAbsolutePath());
|
||||
|
||||
@ -413,10 +406,6 @@ public class FileMergerDialog extends javax.swing.JDialog {
|
||||
_deleteParts();
|
||||
}
|
||||
|
||||
MiscTools.GUIRun(() -> {
|
||||
_main_panel.getView().getMerge_file_menu().setEnabled(true);
|
||||
});
|
||||
|
||||
if (!_exit) {
|
||||
MiscTools.GUIRun(() -> {
|
||||
jProgressBar2.setValue(jProgressBar2.getMaximum());
|
||||
@ -500,9 +489,7 @@ public class FileMergerDialog extends javax.swing.JDialog {
|
||||
if (n == 1) {
|
||||
_exit = true;
|
||||
|
||||
if (!this.file_button.isEnabled()) {
|
||||
_main_panel.getView().getMerge_file_menu().setEnabled(false);
|
||||
}
|
||||
_main_panel.getView().getMerge_file_menu().setEnabled(this.file_button.isEnabled());
|
||||
|
||||
dispose();
|
||||
}
|
||||
|
@ -1,18 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2018 tonikelope
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
@ -92,6 +85,8 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
|
||||
private boolean _splitFile(int i) throws IOException {
|
||||
|
||||
this._progress = 0L;
|
||||
|
||||
int mBperSplit = Integer.parseInt(this.split_size_text.getText());
|
||||
|
||||
if (mBperSplit <= 0) {
|
||||
@ -105,6 +100,18 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
int position = 0;
|
||||
int conta_split = 1;
|
||||
|
||||
MiscTools.GUIRunAndWait(() -> {
|
||||
jProgressBar2.setMinimum(0);
|
||||
jProgressBar2.setMaximum(MAX_VALUE);
|
||||
jProgressBar2.setStringPainted(true);
|
||||
jProgressBar2.setValue(0);
|
||||
file_name_label.setText(truncateText(_files[i].getName(), 150));
|
||||
file_name_label.setToolTipText(_files[i].getAbsolutePath());
|
||||
file_size_label.setText(MiscTools.formatBytes(_files[i].length()));
|
||||
pack();
|
||||
|
||||
});
|
||||
|
||||
try ( RandomAccessFile sourceFile = new RandomAccessFile(this._files[i].getAbsolutePath(), "r"); FileChannel sourceChannel = sourceFile.getChannel()) {
|
||||
|
||||
for (; position < numSplits && !_exit; position++, conta_split++) {
|
||||
@ -157,7 +164,10 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
|
||||
_current_part = fileName;
|
||||
|
||||
_current_file = f;
|
||||
|
||||
monitorProgress(f, byteSize);
|
||||
|
||||
if (!_exit) {
|
||||
try ( RandomAccessFile toFile = new RandomAccessFile(fileName.toFile(), "rw"); FileChannel toChannel = toFile.getChannel()) {
|
||||
sourceChannel.position(position);
|
||||
@ -312,24 +322,23 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
|
||||
updateFonts(filechooser, GUI_FONT, (float) (_main_panel.getZoom_factor() * 1.25));
|
||||
|
||||
filechooser.setDialogTitle("Select file");
|
||||
filechooser.setDialogTitle("Select file/s");
|
||||
|
||||
filechooser.setAcceptAllFileFilterUsed(false);
|
||||
|
||||
if (filechooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION && filechooser.getSelectedFile().canRead()) {
|
||||
|
||||
this._files = filechooser.getSelectedFiles();
|
||||
this.file_name_label.setText(truncateText(this._files[0].getAbsolutePath(), 100));
|
||||
this.file_name_label.setText(truncateText(this._files[0].getName(), 150));
|
||||
this.file_name_label.setToolTipText(this._files[0].getAbsolutePath());
|
||||
this.file_size_label.setText(MiscTools.formatBytes(this._files[0].length()));
|
||||
this.output_folder_label.setText(truncateText(this._files[0].getParentFile().getAbsolutePath(), 100));
|
||||
this.output_folder_label.setText(truncateText(this._files[0].getParentFile().getAbsolutePath(), 150));
|
||||
this.output_folder_label.setToolTipText(this._files[0].getParentFile().getAbsolutePath());
|
||||
this._output_dir = new File(this._files[0].getParentFile().getAbsolutePath());
|
||||
this.jProgressBar2.setMinimum(0);
|
||||
this.jProgressBar2.setMaximum(MAX_VALUE);
|
||||
this.jProgressBar2.setStringPainted(true);
|
||||
this.jProgressBar2.setValue(0);
|
||||
this._progress = 0L;
|
||||
|
||||
this.output_button.setEnabled(true);
|
||||
this.split_size_label.setEnabled(true);
|
||||
@ -337,7 +346,7 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
this.split_button.setEnabled(true);
|
||||
}
|
||||
|
||||
this.file_button.setText(LabelTranslatorSingleton.getInstance().translate("Select file"));
|
||||
this.file_button.setText(LabelTranslatorSingleton.getInstance().translate("Select file/s"));
|
||||
|
||||
this.file_button.setEnabled(true);
|
||||
|
||||
@ -411,33 +420,12 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
try {
|
||||
for (int i = 0; i < this._files.length && !_exit; i++) {
|
||||
|
||||
_current_file = i;
|
||||
|
||||
int j = i;
|
||||
|
||||
MiscTools.GUIRun(() -> {
|
||||
this.jProgressBar2.setMinimum(0);
|
||||
this.jProgressBar2.setMaximum(MAX_VALUE);
|
||||
this.jProgressBar2.setStringPainted(true);
|
||||
this.jProgressBar2.setValue(0);
|
||||
this.file_name_label.setText(truncateText(this._files[j].getAbsolutePath(), 100));
|
||||
this.file_name_label.setToolTipText(this._files[j].getAbsolutePath());
|
||||
this.file_size_label.setText(MiscTools.formatBytes(this._files[j].length()));
|
||||
|
||||
});
|
||||
|
||||
if (_splitFile(i)) {
|
||||
|
||||
MiscTools.GUIRun(() -> {
|
||||
_main_panel.getView().getSplit_file_menu().setEnabled(true);
|
||||
});
|
||||
|
||||
if (i == this._files.length - 1 && !_exit) {
|
||||
|
||||
MiscTools.GUIRun(() -> {
|
||||
|
||||
jProgressBar2.setValue(jProgressBar2.getMaximum());
|
||||
|
||||
JOptionPane.showMessageDialog(tthis, LabelTranslatorSingleton.getInstance().translate("File/s successfully splitted!"));
|
||||
|
||||
if (Desktop.isDesktopSupported()) {
|
||||
@ -466,8 +454,6 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
|
||||
file_size_label.setText("");
|
||||
|
||||
_progress = 0L;
|
||||
|
||||
jProgressBar2.setMinimum(0);
|
||||
jProgressBar2.setMaximum(MAX_VALUE);
|
||||
jProgressBar2.setStringPainted(true);
|
||||
@ -516,9 +502,7 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
if (n == 1) {
|
||||
_exit = true;
|
||||
|
||||
if (!this.file_button.isEnabled()) {
|
||||
_main_panel.getView().getSplit_file_menu().setEnabled(false);
|
||||
}
|
||||
_main_panel.getView().getSplit_file_menu().setEnabled(this.file_button.isEnabled());
|
||||
|
||||
dispose();
|
||||
}
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import com.sun.net.httpserver.Headers;
|
||||
|
@ -1,7 +1,11 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
@ -870,6 +874,12 @@ public class LabelTranslatorSingleton {
|
||||
}
|
||||
|
||||
private void Spanish() {
|
||||
_addTranslation("CANCEL ALL DOWNLOADS?", "¿CANCELAR TODAS LAS DESCARGAS?");
|
||||
_addTranslation("CANCEL ALL DOWNLOADS", "CANCELAR TODAS LAS DESCARGAS");
|
||||
_addTranslation("MEGA ACCOUNTS ARE LOCKED", "LA LISTA DE CUENTAS DE MEGA ESTÁ BLOQUEADA");
|
||||
_addTranslation("IMPORT ACCOUNTS (FILE)", "IMPORTAR CUENTAS (FICHERO)");
|
||||
_addTranslation("Save debug info to file", "Generar fichero de depuración");
|
||||
_addTranslation("Monitor clipboard looking for new links", "Vigilar portapapeles en busca de enlaces nuevos");
|
||||
_addTranslation("SURE?", "SEGURO?");
|
||||
_addTranslation("COPY ALL", "COPIAR TODO");
|
||||
_addTranslation("ALL COPIED!", "¡TODO COPIADO!");
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.DBTools.*;
|
||||
@ -58,7 +67,7 @@ import javax.swing.UIManager;
|
||||
*/
|
||||
public final class MainPanel {
|
||||
|
||||
public static final String VERSION = "7.58";
|
||||
public static final String VERSION = "7.59";
|
||||
public static final boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY
|
||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.CryptTools.*;
|
||||
@ -265,6 +274,8 @@ public final class MainPanelView extends javax.swing.JFrame {
|
||||
try {
|
||||
fr = new FileWriter(upload_log, true);
|
||||
fr.write("***** MegaBasterd UPLOAD LOG FILE *****\n\n");
|
||||
fr.write(MiscTools.getFechaHoraActual() + "\n\n");
|
||||
fr.write(ma.getEmail() + "\n\n");
|
||||
fr.write(dir_name + " " + folder_link + "\n\n");
|
||||
fr.close();
|
||||
} catch (IOException ex) {
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MiscTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MiscTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.VERSION;
|
||||
@ -41,12 +50,15 @@ import java.nio.file.Path;
|
||||
import java.security.CodeSource;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.text.DateFormat;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Base64;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@ -107,6 +119,22 @@ public class MiscTools {
|
||||
};
|
||||
private static final Logger LOG = Logger.getLogger(MiscTools.class.getName());
|
||||
|
||||
public static String getFechaHoraActual() {
|
||||
|
||||
String format = "dd-MM-yyyy HH:mm:ss";
|
||||
|
||||
return getFechaHoraActual(format);
|
||||
}
|
||||
|
||||
public static String getFechaHoraActual(String format) {
|
||||
|
||||
Date currentDate = new Date(System.currentTimeMillis());
|
||||
|
||||
DateFormat df = new SimpleDateFormat(format);
|
||||
|
||||
return df.format(currentDate);
|
||||
}
|
||||
|
||||
public static void deleteDirectoryRecursion(Path path) throws IOException {
|
||||
if (Files.isDirectory(path, LinkOption.NOFOLLOW_LINKS)) {
|
||||
try ( DirectoryStream<Path> entries = Files.newDirectoryStream(path)) {
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
/**
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
/**
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.DBTools.*;
|
||||
@ -3020,7 +3029,7 @@ public class SettingsDialog extends javax.swing.JDialog {
|
||||
|
||||
}
|
||||
} else {
|
||||
JOptionPane.showMessageDialog(this, LabelTranslatorSingleton.getInstance().translate("MEGA ACCOUNTS ARE LOCKED"), "Mega Accounts Locked", JOptionPane.ERROR_MESSAGE);
|
||||
JOptionPane.showMessageDialog(this, LabelTranslatorSingleton.getInstance().translate("MEGA ACCOUNTS ARE LOCKED"), "ERROR", JOptionPane.ERROR_MESSAGE);
|
||||
|
||||
}
|
||||
}//GEN-LAST:event_import_mega_buttonActionPerformed
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MiscTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MiscTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.Timer;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
/**
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
@ -947,7 +956,7 @@ public class Upload implements Transference, Runnable, SecureSingleThreadNotifia
|
||||
FileWriter fr;
|
||||
try {
|
||||
fr = new FileWriter(upload_log, true);
|
||||
fr.write(_file_name + " [" + MiscTools.formatBytes(_file_size) + "] " + _file_link + "\n");
|
||||
fr.write("[" + MiscTools.getFechaHoraActual() + "] " + _file_name + " [" + MiscTools.formatBytes(_file_size) + "] " + _file_link + "\n");
|
||||
fr.close();
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(Upload.class.getName()).log(Level.SEVERE, ex.getMessage());
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.CryptTools.*;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
import static com.tonikelope.megabasterd.MainPanel.*;
|
||||
|
@ -1,18 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2018 tonikelope
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__ __ _ _ _
|
||||
| \/ | ___ __ _ __ _| |__ __ _ ___| |_ ___ _ __ __| |
|
||||
| |\/| |/ _ \/ _` |/ _` | '_ \ / _` / __| __/ _ \ '__/ _` |
|
||||
| | | | __/ (_| | (_| | |_) | (_| \__ \ || __/ | | (_| |
|
||||
|_| |_|\___|\__, |\__,_|_.__/ \__,_|___/\__\___|_| \__,_|
|
||||
|___/
|
||||
© Perpetrated by tonikelope since 2016
|
||||
*/
|
||||
package com.tonikelope.megabasterd;
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 179 KiB |
Loading…
x
Reference in New Issue
Block a user