package de.zigapeda.flowspring.controller;

public class Genrelist {
	private static final String[] GENRELIST = new String[255];
	static {
		GENRELIST[0] = "Blues";
		GENRELIST[1] = "Classic Rock";
		GENRELIST[2] = "Country";
		GENRELIST[3] = "Dance";
		GENRELIST[4] = "Disco";
		GENRELIST[5] = "Funk";
		GENRELIST[6] = "Grunge";
		GENRELIST[7] = "Hip-Hop";
		GENRELIST[8] = "Jazz";
		GENRELIST[9] = "Metal";
		GENRELIST[10] = "New Age";
		GENRELIST[11] = "Oldies";
		GENRELIST[12] = "Other";
		GENRELIST[13] = "Pop";
		GENRELIST[14] = "Rhythm and Blues";
		GENRELIST[15] = "Rap";
		GENRELIST[16] = "Reggae";
		GENRELIST[17] = "Rock";
		GENRELIST[18] = "Techno";
		GENRELIST[19] = "Industrial";
		GENRELIST[20] = "Alternative";
		GENRELIST[21] = "Ska";
		GENRELIST[22] = "Death Metal";
		GENRELIST[23] = "Pranks";
		GENRELIST[24] = "Soundtrack";
		GENRELIST[25] = "Euro-Techno";
		GENRELIST[26] = "Ambient";
		GENRELIST[27] = "Trip-Hop";
		GENRELIST[28] = "Vocal";
		GENRELIST[29] = "Jazz&Funk";
		GENRELIST[30] = "Fusion";
		GENRELIST[31] = "Trance";
		GENRELIST[32] = "Classical";
		GENRELIST[33] = "Instrumental";
		GENRELIST[34] = "Acid";
		GENRELIST[35] = "House";
		GENRELIST[36] = "Game";
		GENRELIST[37] = "Sound Clip";
		GENRELIST[38] = "Gospel";
		GENRELIST[39] = "Noise";
		GENRELIST[40] = "Alternative Rock";
		GENRELIST[41] = "Bass";
		GENRELIST[42] = "Soul";
		GENRELIST[43] = "Punk";
		GENRELIST[44] = "Space";
		GENRELIST[45] = "Meditative";
		GENRELIST[46] = "Instrumental Pop";
		GENRELIST[47] = "Instrumental Rock";
		GENRELIST[48] = "Ethnic";
		GENRELIST[49] = "Gothic";
		GENRELIST[50] = "Darkwave";
		GENRELIST[51] = "Techno-Industrial";
		GENRELIST[52] = "Electronic";
		GENRELIST[53] = "Pop-Folk";
		GENRELIST[54] = "Eurodance";
		GENRELIST[55] = "Dream";
		GENRELIST[56] = "Southern Rock";
		GENRELIST[57] = "Comedy";
		GENRELIST[58] = "Cult";
		GENRELIST[59] = "Gangsta";
		GENRELIST[60] = "Top 40";
		GENRELIST[61] = "Christian Rap";
		GENRELIST[62] = "Pop/Funk";
		GENRELIST[63] = "Jungle";
		GENRELIST[64] = "Native US";
		GENRELIST[65] = "Cabaret";
		GENRELIST[66] = "New Wave";
		GENRELIST[67] = "Psychedelic";
		GENRELIST[68] = "Rave";
		GENRELIST[69] = "Showtunes";
		GENRELIST[70] = "Trailer";
		GENRELIST[71] = "Lo-Fi";
		GENRELIST[72] = "Tribal";
		GENRELIST[73] = "Acid Punk";
		GENRELIST[74] = "Acid Jazz";
		GENRELIST[75] = "Polka";
		GENRELIST[76] = "Retro";
		GENRELIST[77] = "Musical";
		GENRELIST[78] = "Rock & Roll";
		GENRELIST[79] = "Hard Rock";
		GENRELIST[80] = "Folk";
		GENRELIST[81] = "Folk-Rock";
		GENRELIST[82] = "National Folk";
		GENRELIST[83] = "Swing";
		GENRELIST[84] = "Fast Fusion";
		GENRELIST[85] = "Bebop";
		GENRELIST[86] = "Latin";
		GENRELIST[87] = "Revival";
		GENRELIST[88] = "Celtic";
		GENRELIST[89] = "Bluegrass";
		GENRELIST[90] = "Avantgarde";
		GENRELIST[91] = "Gothic Rock";
		GENRELIST[92] = "Progressive Rock";
		GENRELIST[93] = "Psychedelic Rock";
		GENRELIST[94] = "Symphonic Rock";
		GENRELIST[95] = "Slow Rock";
		GENRELIST[96] = "Big Band";
		GENRELIST[97] = "Chorus";
		GENRELIST[98] = "Easy Listening";
		GENRELIST[99] = "Acoustic";
		GENRELIST[100] = "Humour";
		GENRELIST[101] = "Speech";
		GENRELIST[102] = "Chanson";
		GENRELIST[103] = "Opera";
		GENRELIST[104] = "Chamber Music";
		GENRELIST[105] = "Sonata";
		GENRELIST[106] = "Symphony";
		GENRELIST[107] = "Booty Bass";
		GENRELIST[108] = "Primus";
		GENRELIST[109] = "Porn Groove";
		GENRELIST[110] = "Satire";
		GENRELIST[111] = "Slow Jam";
		GENRELIST[112] = "Club";
		GENRELIST[113] = "Tango";
		GENRELIST[114] = "Samba";
		GENRELIST[115] = "Folklore";
		GENRELIST[116] = "Ballad";
		GENRELIST[117] = "Power Ballad";
		GENRELIST[118] = "Rhythmic Soul";
		GENRELIST[119] = "Freestyle";
		GENRELIST[120] = "Duet";
		GENRELIST[121] = "Punk Rock";
		GENRELIST[122] = "Drum Solo";
		GENRELIST[123] = "A capella";
		GENRELIST[124] = "Euro-House";
		GENRELIST[125] = "Dance Hall";
		GENRELIST[126] = "Goa";
		GENRELIST[127] = "Drum & Bass";
		GENRELIST[128] = "Club-House";
		GENRELIST[129] = "Hardcore";
		GENRELIST[130] = "Terror";
		GENRELIST[131] = "Indie";
		GENRELIST[132] = "BritPop";
		GENRELIST[133] = "Negerpunk";
		GENRELIST[134] = "Polsk Punk";
		GENRELIST[135] = "Beat";
		GENRELIST[136] = "Christian Gangsta Rap";
		GENRELIST[137] = "Heavy Metal";
		GENRELIST[138] = "Black Metal";
		GENRELIST[139] = "Crossover";
		GENRELIST[140] = "Contemporary Christian";
		GENRELIST[141] = "Christian Rock";
		GENRELIST[142] = "Merengue";
		GENRELIST[143] = "Salsa";
		GENRELIST[144] = "Thrash Metal";
		GENRELIST[145] = "Anime";
		GENRELIST[146] = "Jpop";
		GENRELIST[147] = "Synthpop";
	}
	
	public static String getGenre(String string) {
		string = string.substring(1,string.indexOf(")"));
		try {
			int id = Integer.valueOf(string);
			if(id >= 0 && id <= 147) {
				string = GENRELIST[id];
			} else {
				string = "";
			}
		} catch(NumberFormatException e) {
		}
		return string;
	}
}
