public boolean download()
	{
		try
		{
			if(Main.DL_ON)
			{
				//get the magnet link from TPB
				String link = "https://thepiratebay.se/search/"+show.getSearchText()+' '+getSENumber();

				//try 1080p HD first
				Element result = Jsoup.connect(link+" 1080p/0/99/0").userAgent("Mozilla").timeout(30*1000).get().getElementsByClass("detName").first();
				//try 720p HD
				if(result == null)
					result = Jsoup.connect(link+" 720p/0/99/0").userAgent("Mozilla").timeout(30*1000).get().getElementsByClass("detName").first();
				//try all HD
				if(result == null)
					result = Jsoup.connect(link+"/0/99/208").userAgent("Mozilla").timeout(30*1000).get().getElementsByClass("detName").first();
				//if no HD, try all categories
				if(result == null)
					result = Jsoup.connect(link+"/0/99/0").userAgent("Mozilla").timeout(30*1000).get().getElementsByClass("detName").first();
				
				//open the magnet link
				new MagnetLink(result.text(), result.siblingElements().get(0).attr("href")).open();
			}

			//return true if it worked
			return true;
		}
		catch(Exception e)
		{
			//return false if it failed
			return false;
		}
	}