-MegaCrypter password links fix
This commit is contained in:
tonikelope 2017-04-22 19:20:08 +02:00
parent 354352fd64
commit ca866be0fc
4 changed files with 11 additions and 16 deletions

View File

@ -61,7 +61,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
*/
public final class MainPanel {
public static final String VERSION = "1.81";
public static final String VERSION = "1.82";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337;
public static final int WATCHDOG_PORT = 1338;

View File

@ -190,7 +190,7 @@
<Component id="logo_label" min="-2" max="-2" attributes="0"/>
<Component id="kiss_server_status" min="-2" pref="18" max="-2" attributes="0"/>
</Group>
<EmptySpace min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="2" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>

View File

@ -462,7 +462,7 @@ public final class MainPanelView extends javax.swing.JFrame {
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(logo_label)
.addComponent(kiss_server_status, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
.addGap(2, 2, 2))
);
pack();

View File

@ -211,19 +211,14 @@ public final class MegaCrypterAPI {
noexpire_token = aux[1];
}
String pass = null;
String pass;
Object pass_val = res_map.get("pass");
if (pass_val instanceof Boolean) {
pass = null;
} else if (expire_val instanceof String) {
pass = (String) pass_val;
}
pass = (String) pass_val;
System.out.println("PASS: "+pass);
System.out.println(noexpire_token);
if (pass != null) {
@ -277,8 +272,8 @@ public final class MegaCrypterAPI {
}
} catch (Exception ex) {
throw new MegaCrypterAPIException("25");
bad_pass = true;
}
}