Commit 672fd0b2 authored by Petri Hintukainen's avatar Petri Hintukainen

BDLocator: fix locator string when there's only title present

parent 7eb4deb9
......@@ -260,11 +260,19 @@ public class BDLocator extends Locator {
protected String getUrl() {
String str = "bd://";
if (disc != null && disc != "")
str += disc + ".";
if (disc != null && disc != "") {
str += disc;
if (titleNum >= 0) {
str += ".";
}
}
if (titleNum >= 0)
str += Integer.toString(titleNum, 16) + ".";
if (titleNum >= 0) {
str += Integer.toString(titleNum, 16);
if (jar >= 0 || playList >= 0 || sound >= 0) {
str += ".";
}
}
if (jar >= 0) {
str += "JAR:" + BDJUtil.makeFiveDigitStr(jar);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment