CheckMEGADLURL FIX
This commit is contained in:
tonikelope 2017-09-21 15:20:13 +02:00
parent 6ff0dbdc40
commit 6d1503bd67
3 changed files with 6 additions and 5 deletions

View File

@ -920,7 +920,7 @@ public final class MiscTools {
try (CloseableHttpClient httpclient = MiscTools.getApacheKissHttpClient()) { try (CloseableHttpClient httpclient = MiscTools.getApacheKissHttpClient()) {
HttpGet httpget = new HttpGet(new URI(string_url + "/0")); HttpGet httpget = new HttpGet(new URI(string_url + "/0-1"));
try (CloseableHttpResponse httpresponse = httpclient.execute(httpget)) { try (CloseableHttpResponse httpresponse = httpclient.execute(httpget)) {
@ -930,6 +930,7 @@ public final class MiscTools {
} catch (MalformedURLException ex) { } catch (MalformedURLException ex) {
Logger.getLogger(MiscTools.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(MiscTools.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException | URISyntaxException ex) { } catch (IOException | URISyntaxException ex) {
System.out.println(ex.getMessage());
Logger.getLogger(MiscTools.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(MiscTools.class.getName()).log(Level.SEVERE, null, ex);
} }

View File

@ -153,7 +153,7 @@
<Component id="use_mega_account_down_combobox" min="-2" pref="569" max="-2" attributes="0"/> <Component id="use_mega_account_down_combobox" min="-2" pref="569" max="-2" attributes="0"/>
</Group> </Group>
</Group> </Group>
<EmptySpace min="0" pref="190" max="32767" attributes="0"/> <EmptySpace min="0" pref="10" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
@ -341,7 +341,7 @@
<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="DejaVu Sans" size="16" style="0"/> <Font name="DejaVu Sans" size="16" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Note: it is recommended not to enable MULTI SLOT."/> <Property name="text" type="java.lang.String" value="Note: it is recommended not to enable MULTI SLOT (except you want to download +5GB file with a free account)."/>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JCheckBox" name="use_mega_account_down_checkbox"> <Component class="javax.swing.JCheckBox" name="use_mega_account_down_checkbox">

View File

@ -576,7 +576,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
default_dir_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N default_dir_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
rec_download_slots_label.setFont(new java.awt.Font("DejaVu Sans", 0, 16)); // NOI18N rec_download_slots_label.setFont(new java.awt.Font("DejaVu Sans", 0, 16)); // NOI18N
rec_download_slots_label.setText("Note: it is recommended not to enable MULTI SLOT."); rec_download_slots_label.setText("Note: it is recommended not to enable MULTI SLOT (except you want to download +5GB file with a free account).");
use_mega_account_down_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N use_mega_account_down_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
use_mega_account_down_checkbox.setText("Use MEGA account for download/stream"); use_mega_account_down_checkbox.setText("Use MEGA account for download/stream");
@ -635,7 +635,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
.addComponent(use_mega_label) .addComponent(use_mega_label)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(use_mega_account_down_combobox, javax.swing.GroupLayout.PREFERRED_SIZE, 569, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(use_mega_account_down_combobox, javax.swing.GroupLayout.PREFERRED_SIZE, 569, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 190, Short.MAX_VALUE))) .addGap(0, 10, Short.MAX_VALUE)))
.addContainerGap()) .addContainerGap())
); );
downloads_panelLayout.setVerticalGroup( downloads_panelLayout.setVerticalGroup(