	private void showDownloadDialog(final String torrentId, final String url) {
		AlertDialog alert = new AlertDialog.Builder(TorrentFormatsActivity.this).create();
		alert.setButton(AlertDialog.BUTTON1, "Download", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
				startActivity(intent);
			}
		});
		alert.setButton(AlertDialog.BUTTON3, "Send to pyWA", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				String host = Settings.getHostPreference();
				String port = Settings.getPortPreference();
				String password = Settings.getPasswordPreference();
				if (host.length() > 0 && port.length() > 0 && password.length() > 0) {
					String pyWaUrl = host + ":" + port + "/dl.pywa?pass=" + password + "&site=whatcd&id=" + torrentId;
					try {
						MySoup.scrapeOther(pyWaUrl);
						Toast.makeText(TorrentFormatsActivity.this, "Torrent sent", Toast.LENGTH_SHORT).show();
					} catch (CouldNotLoadException e) {
						Toast.makeText(TorrentFormatsActivity.this, "Could not send torrent", Toast.LENGTH_SHORT).show();
					}
				} else {
					Toast.makeText(TorrentFormatsActivity.this, "Fill out pyWA information in Settings", Toast.LENGTH_LONG)
							.show();
				}
			}
		});
		alert.setButton(AlertDialog.BUTTON2, "Cancel", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
			}
		});
		alert.setCancelable(true);
		alert.show();
	}

	private void showDownloadDialog(final String torrentId, final String url) {
		AlertDialog alert = new AlertDialog.Builder(TorrentFormatsActivity.this).create();
		alert.setButton(AlertDialog.BUTTON1, "Download", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
				startActivity(intent);
			}
		});
		alert.setButton(AlertDialog.BUTTON3, "Send to pyWA", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				String host = Settings.getHostPreference();
				String port = Settings.getPortPreference();
				String password = Settings.getPasswordPreference();
				if ((host.length() > 0) && (port.length() > 0) && (password.length() > 0)) {
					String pyWaUrl = host + ":" + port + "/dl.pywa?pass=" + password + "&site=whatcd&id=" + torrentId;
					try {
						MySoup.scrapeOther(pyWaUrl);
						Toast.makeText(TorrentFormatsActivity.this, "Torrent sent", Toast.LENGTH_SHORT).show();
					} catch (CouldNotLoadException e) {
						Toast.makeText(TorrentFormatsActivity.this, "Could not send torrent", Toast.LENGTH_SHORT).show();
					}
				} else {
					Toast.makeText(TorrentFormatsActivity.this, "Fill out pyWA information in Settings", Toast.LENGTH_LONG)
							.show();
				}
			}
		});
		alert.setButton(AlertDialog.BUTTON2, "Cancel", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
			}
		});
		alert.setCancelable(true);
		alert.show();
	}
