29 |
|
|
30 |
import java.util.Date; |
import java.util.Date; |
31 |
|
|
32 |
|
import static org.linuxsampler.lscp.Parser.*; |
33 |
|
|
34 |
|
|
35 |
/** |
/** |
36 |
* Provides information about a database instrument. |
* Provides information about a database instrument. |
89 |
if(getDirectoryPath() == null) return null; |
if(getDirectoryPath() == null) return null; |
90 |
if(getDirectoryPath().length() == 1) { |
if(getDirectoryPath().length() == 1) { |
91 |
if(!getDirectoryPath().equals("/")) return null; |
if(!getDirectoryPath().equals("/")) return null; |
92 |
return getDirectoryPath() + getName(); |
return getDirectoryPath() + toEscapedFileName(getName()); |
93 |
} |
} |
94 |
|
|
95 |
return getDirectoryPath() + "/" + getName(); |
return getDirectoryPath() + "/" + toEscapedFileName(getName()); |
96 |
} |
} |
97 |
|
|
98 |
/** |
/** |
207 |
drum = Boolean.parseBoolean(s.substring("IS_DRUM: ".length())); |
drum = Boolean.parseBoolean(s.substring("IS_DRUM: ".length())); |
208 |
} else if(s.startsWith("PRODUCT: ")) { |
} else if(s.startsWith("PRODUCT: ")) { |
209 |
product = s.substring("PRODUCT: ".length()); |
product = s.substring("PRODUCT: ".length()); |
210 |
|
product = toNonEscapedText(product); |
211 |
} else if(s.startsWith("ARTISTS: ")) { |
} else if(s.startsWith("ARTISTS: ")) { |
212 |
artists = s.substring("ARTISTS: ".length()); |
artists = s.substring("ARTISTS: ".length()); |
213 |
|
artists = toNonEscapedText(artists); |
214 |
} else if(s.startsWith("KEYWORDS: ")) { |
} else if(s.startsWith("KEYWORDS: ")) { |
215 |
keywords = s.substring("KEYWORDS: ".length()); |
keywords = s.substring("KEYWORDS: ".length()); |
216 |
|
keywords = toNonEscapedText(keywords); |
217 |
} else return false; |
} else return false; |
218 |
|
|
219 |
return true; |
return true; |