Adding downloads from URLs
From AzureusWiki
Revision as of 00:40, 21 January 2007; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
If you need to add a download into Azureus by grabbing the torrent from a URL, *and* you want to have a reference to the resulting download, here's a way to do it:
ResourceDownloader rdl = pluginInterface.getUtilities().getResourceDownloaderFactory().create(url); InputStream is = rdl.download(); Torrent t = torrentManager.createFromBEncodedInputStream(is); Download d = pluginInterface.getDownloadManager().addDownload(t);
