Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
Fix UTF-8 Problem
Browse files Browse the repository at this point in the history
  • Loading branch information
a1aw committed Jun 17, 2018
1 parent b9bd7e5 commit e1c069a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/github/mob41/osumer/Osumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Osumer {

public static final String OSUMER_BRANCH = "snapshot";

public static final int OSUMER_BUILD_NUM = 4;
public static final int OSUMER_BUILD_NUM = 5;

private Osumer() {

Expand Down
10 changes: 6 additions & 4 deletions src/main/java/com/github/mob41/osumer/ui/UIFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public void actionPerformed(ActionEvent e) {

tab = new JTabbedPane(JTabbedPane.TOP);

JLabel lblCopyright = new JLabel("Copyright (c) 2016-2017 Anthony Law. Licensed under MIT License.");
JLabel lblCopyright = new JLabel("Copyright (c) 2016-2018 Anthony Law. Licensed under MIT License.");
lblCopyright.setFont(new Font("Tahoma", Font.PLAIN, 12));
lblCopyright.setHorizontalAlignment(SwingConstants.CENTER);

Expand Down Expand Up @@ -758,8 +758,10 @@ public boolean addQuietBtQueue(String url) {
return false;
}

String modBUrl = config.isLegacyEnableOldSiteBeatmapRedirecting() ? url.replace("osu.ppy.sh", "old.ppy.sh") : url;

try {
map = osu.getBeatmapInfo(url);
map = osu.getBeatmapInfo(modBUrl);
} catch (DebuggableException e) {
e.printStackTrace();
JOptionPane.showMessageDialog(UIFrame.this,
Expand Down Expand Up @@ -911,8 +913,8 @@ public void run() {
pbd.dispose();
return;
}
String modUrl = url.replace("osu.ppy.sh", "old.ppy.sh");

String modUrl = config.isLegacyEnableOldSiteBeatmapRedirecting() ? url.replace("osu.ppy.sh", "old.ppy.sh") : url;

pbd.getLabel().setText("Status: Obtaining beatmap information...");
try {
Expand Down

0 comments on commit e1c069a

Please sign in to comment.