|
@@ -40,20 +40,11 @@ public class AddonInfo {
|
40
|
40
|
|
41
|
41
|
/** Addon site ID. */
|
42
|
42
|
private final int id;
|
43
|
|
- /**
|
44
|
|
- * Stable download name. This should be prepended with http://addons.dmdirc.com/addondownload/
|
45
|
|
- * to get a full URL.
|
46
|
|
- */
|
|
43
|
+ /** Stable download name. */
|
47
|
44
|
private final String stableDownload;
|
48
|
|
- /**
|
49
|
|
- * Stable download name. This should be prepended with http://addons.dmdirc.com/addondownload/
|
50
|
|
- * to get a full URL.
|
51
|
|
- */
|
|
45
|
+ /** Unstable download name. */
|
52
|
46
|
private final String unstableDownload;
|
53
|
|
- /**
|
54
|
|
- * Stable download name. This should be prepended with http://addons.dmdirc.com/addondownload/
|
55
|
|
- * to get a full URL.
|
56
|
|
- */
|
|
47
|
+ /** Nightly download name. */
|
57
|
48
|
private final String nightlyDownload;
|
58
|
49
|
/** Addon title. */
|
59
|
50
|
private final String title;
|
|
@@ -104,13 +95,12 @@ public class AddonInfo {
|
104
|
95
|
verified = entry.get("verified").equals("yes");
|
105
|
96
|
date = Integer.parseInt(entry.get("date"));
|
106
|
97
|
if (entry.get("screenshot").equals("yes")) {
|
107
|
|
- screenshot = new ImageIcon(urlBuilder.getUrl(
|
108
|
|
- "http://addons.dmdirc.com/addonimg/" + id));
|
|
98
|
+ screenshot = new ImageIcon(
|
|
99
|
+ urlBuilder.getUrl("https://addons.dmdirc.com/addonimg/" + id));
|
109
|
100
|
screenshot.setImage(screenshot.getImage().
|
110
|
101
|
getScaledInstance(150, 150, Image.SCALE_SMOOTH));
|
111
|
102
|
} else {
|
112
|
|
- screenshot = new ImageIcon(urlBuilder.getUrl(
|
113
|
|
- "dmdirc://com/dmdirc/res/logo.png"));
|
|
103
|
+ screenshot = new ImageIcon(urlBuilder.getUrl("dmdirc://com/dmdirc/res/logo.png"));
|
114
|
104
|
}
|
115
|
105
|
|
116
|
106
|
UpdateChannel tempChannel;
|