register(
final Download download )
{
// only add the azid to platform content
DownloadManagerStateAttributeListener dmsal = new DownloadManagerStateAttributeListener() {
public void attributeEventOccurred(org.gudy.azureus2.core3.download.DownloadManager dm, String attribute_name, int event_type) {
try{
Torrent t = download.getTorrent();
if (t == null) {return;}
if (!PlatformTorrentUtils.isContent(t, true)) {return;}