/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/DbInstrumentInfo.java
ViewVC logotype

Diff of /jlscp/trunk/src/org/linuxsampler/lscp/DbInstrumentInfo.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1345 by iliev, Thu May 24 20:17:25 2007 UTC revision 1346 by iliev, Thu Sep 13 22:02:03 2007 UTC
# Line 29  import java.text.SimpleDateFormat; Line 29  import java.text.SimpleDateFormat;
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.
# Line 87  public class DbInstrumentInfo extends Ab Line 89  public class DbInstrumentInfo extends Ab
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          /**          /**
# Line 205  public class DbInstrumentInfo extends Ab Line 207  public class DbInstrumentInfo extends Ab
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;

Legend:
Removed from v.1345  
changed lines
  Added in v.1346

  ViewVC Help
Powered by ViewVC