public String createParsedURI (String searchTerm, String mediaType){ 
		/*
		 * Given a search term return the Piratebay URI.
		 * example @param "linkin park in the end", "music"
		 */
		String baseURI = Constants.PIRATE_SEARCH_BASE;
		String parsedQuery = "";
		
		
		String URI;
		if (mediaType.toLowerCase().equals("movie") || mediaType.toLowerCase().equals("movies"))
			URI = Constants.PIRATE_SEARCH_MOVIE_SUFFIX;
		else
			URI = Constants.PIRATE_SEARCH_MUSIC_SUFFIX;
		        
		for (int i = 0; i < searchTerm.length(); i++){
			if (searchTerm.charAt(i) != ' ')
				parsedQuery = parsedQuery + searchTerm.charAt(i);
			else
				parsedQuery = parsedQuery + "%20";
		}
		return baseURI + parsedQuery + URI; //returns the search page
	}