Esempio n. 1
0
 /* Database request commands */
 public static String MPD_COMMAND_REQUEST_ALBUMS(MPDCapabilities caps)
 {
     if (caps.hasListGroup())
     {
         return("list album" + CreateAlbumGroupString(caps));
     }
     else
     {
         return("list album");
     }
 }
Esempio n. 2
0
 public static String MPD_COMMAND_REQUEST_ARTIST_ALBUMS(String artistName, MPDCapabilities caps)
 {
     if (caps.hasListGroup())
     {
         return("list album artist \"" + artistName.Replace("\"", "\\\\\"") + "\"" + CreateAlbumGroupString(caps));
     }
     else
     {
         return("list album \"" + artistName.Replace("\"", "\\\\\"") + "\"");
     }
 }
Esempio n. 3
0
 public static String MPD_COMMAND_REQUEST_ALBUMS_FOR_PATH(String path, MPDCapabilities caps)
 {
     if (caps.hasListGroup())
     {
         return("list album base \"" + path + "\"" + CreateAlbumGroupString(caps));
     }
     else
     {
         // FIXME check if correct. Possible fallback for group missing -> base command also missing.
         return("list album");
     }
 }
Esempio n. 4
0
        private static String CreateAlbumGroupString(MPDCapabilities caps)
        {
            String groups = "";

            if (caps.hasTagAlbumArtist())
            {
                groups += " group albumartist";
            }
            if (caps.hasMusicBrainzTags())
            {
                groups += " group musicbrainz_albumid";
            }
            if (caps.hasTagDate())
            {
                groups += " group date";
            }
            return(groups);
        }