public boolean downloadFile(String url_, String localPath) {
		try {
			URL url = new URL(url_.replace(" ", "%20"));
			FileOutputStream fstream = new FileOutputStream(new File(localPath));
			HttpURLConnection conn = (HttpURLConnection) url.openConnection();
			conn.setRequestMethod("GET");
			conn.connect();
			int code = conn.getResponseCode();
			if (code == HttpURLConnection.HTTP_OK) {
				byte tmp_buffer[] = new byte[2048];
				InputStream stream = conn.getInputStream();
				int n;
				while ((n = stream.read(tmp_buffer)) > 0) {
					fstream.write(tmp_buffer, 0, n);
					fstream.flush();
				}
				fstream.close();
				return true;
			} else {
				System.out.println("HTTP Core : " + code);
				System.out.println("Error while loading information.");
				fstream.close();
				return false;
			}
		} catch (Exception e) {
			if (settings.getBoolean("showDebugConsole"))
				e.printStackTrace();
		}
		return false;
	}