+BASE64 encoded MEGA links
This commit is contained in:
tonikelope 2023-10-22 18:38:24 +02:00
parent 92b04ffd63
commit 4ee08a86f4
7 changed files with 13 additions and 10 deletions

View File

@ -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>8.1</version> <version>8.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<repositories> <repositories>
<repository> <repository>

View File

@ -88,7 +88,7 @@
</DimensionLayout> </DimensionLayout>
<DimensionLayout dim="1"> <DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Component id="file_tree_scrollpane" alignment="0" pref="171" max="32767" attributes="0"/> <Component id="file_tree_scrollpane" alignment="0" pref="165" max="32767" attributes="0"/>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
</Layout> </Layout>
@ -329,7 +329,10 @@
<Component class="javax.swing.JLabel" name="total_file_size_label"> <Component class="javax.swing.JLabel" name="total_file_size_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Dialog" size="28" style="1"/> <Font name="Dialog" size="32" style="1"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="0" red="0" type="rgb"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="[0 B]"/> <Property name="text" type="java.lang.String" value="[0 B]"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>

View File

@ -288,7 +288,7 @@ public class FileGrabberDialog extends javax.swing.JDialog {
); );
jPanel1Layout.setVerticalGroup( jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(file_tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE) .addComponent(file_tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
); );
jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Upload info")); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Upload info"));
@ -416,7 +416,8 @@ public class FileGrabberDialog extends javax.swing.JDialog {
} }
}); });
total_file_size_label.setFont(new java.awt.Font("Dialog", 1, 28)); // NOI18N total_file_size_label.setFont(new java.awt.Font("Dialog", 1, 32)); // NOI18N
total_file_size_label.setForeground(new java.awt.Color(0, 0, 255));
total_file_size_label.setText("[0 B]"); total_file_size_label.setText("[0 B]");
total_file_size_label.setDoubleBuffered(true); total_file_size_label.setDoubleBuffered(true);
total_file_size_label.setEnabled(false); total_file_size_label.setEnabled(false);

View File

@ -213,7 +213,7 @@
<Font name="Dialog" size="32" style="1"/> <Font name="Dialog" size="32" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="33" red="0" type="rgb"/> <Color blue="ff" green="0" red="0" type="rgb"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="[---]"/> <Property name="text" type="java.lang.String" value="[---]"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>

View File

@ -232,7 +232,7 @@ public class FolderLinkDialog extends javax.swing.JDialog {
}); });
total_space_label.setFont(new java.awt.Font("Dialog", 1, 32)); // NOI18N total_space_label.setFont(new java.awt.Font("Dialog", 1, 32)); // NOI18N
total_space_label.setForeground(new java.awt.Color(0, 51, 255)); total_space_label.setForeground(new java.awt.Color(0, 0, 255));
total_space_label.setText("[---]"); total_space_label.setText("[---]");
total_space_label.setDoubleBuffered(true); total_space_label.setDoubleBuffered(true);
total_space_label.setEnabled(false); total_space_label.setEnabled(false);

View File

@ -70,7 +70,7 @@ import javax.swing.UIManager;
*/ */
public final class MainPanel { public final class MainPanel {
public static final String VERSION = "8.1"; public static final String VERSION = "8.2";
public static final boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY 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 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;

View File

@ -1022,8 +1022,7 @@ public final class MainPanelView extends javax.swing.JFrame {
Runnable run = () -> { Runnable run = () -> {
//Convert to legacy link format String link_data = MiscTools.extractMegaLinksFromString(dialog.getLinks_textarea().getText());
String link_data = MiscTools.newMegaLinks2Legacy(dialog.getLinks_textarea().getText());
Set<String> urls = new HashSet(findAllRegex("(?:https?|mega)://[^\r\n]+(#[^\r\n!]*?)?![^\r\n!]+![^\\?\r\n/]+", link_data, 0)); Set<String> urls = new HashSet(findAllRegex("(?:https?|mega)://[^\r\n]+(#[^\r\n!]*?)?![^\r\n!]+![^\\?\r\n/]+", link_data, 0));