PluginInterface pi = core.getPluginManager().getDefaultPluginInterface();
pi.getDownloadManager().addListener(
new DownloadManagerListener()
{
public void
downloadAdded(
Download download )
{
// only add the azid to platform content
Torrent t = download.getTorrent();
if ( t == null ){
return;
}
if ( !PlatformTorrentUtils.isContent( t, true )){
return;
}
DownloadUtils.addTrackerExtension( download, EXTENSION_PREFIX, Constants.AZID );
}
public void downloadRemoved(Download download) {
}
});