public static ArrayList<HashMap<String, String>> search(String searchText) throws IOException
	{
		//get the search xml document
		Document search = Jsoup.connect("http://thetvdb.com/api/GetSeries.php?seriesname="+searchText).timeout(60*1000).get();

		//get the possible entries
		Elements nodes = search.getElementsByTag("series");
		ArrayList<HashMap<String, String>> entries = new ArrayList<HashMap<String, String>>();

		for(int i=0; i<nodes.size(); ++i)
		{
			Node series = nodes.get(i);

			HashMap<String, String> showInfo = new HashMap<String, String>();
			for(Node field : series.childNodes())
				if(field.getClass().equals(Element.class))
					showInfo.put(((Element)field).tag().getName(), ((TextNode)field.childNode(0)).text());
			showInfo.put("search", searchText);

			entries.add(showInfo);
		}

		return entries;
	}