~smaioli/azureus/ubuntu-experimental

« back to all changes in this revision

Viewing changes to com/aelitis/azureus/ui/swt/browser/listener/TorrentListener.java

MergedĀ VuzeĀ 4.2.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
import com.aelitis.azureus.core.AzureusCore;
15
15
import com.aelitis.azureus.core.AzureusCoreFactory;
 
16
import com.aelitis.azureus.core.cnetwork.ContentNetworkManagerFactory;
16
17
import com.aelitis.azureus.core.messenger.ClientMessageContext;
17
18
import com.aelitis.azureus.core.messenger.ClientMessageContext.torrentURLHandler;
18
19
import com.aelitis.azureus.core.messenger.browser.BrowserMessage;
20
21
import com.aelitis.azureus.core.messenger.config.PlatformRatingMessenger;
21
22
import com.aelitis.azureus.core.torrent.PlatformTorrentUtils;
22
23
import com.aelitis.azureus.ui.selectedcontent.DownloadUrlInfo;
 
24
import com.aelitis.azureus.ui.selectedcontent.DownloadUrlInfoContentNetwork;
23
25
import com.aelitis.azureus.ui.selectedcontent.SelectedContentV3;
24
26
import com.aelitis.azureus.ui.swt.utils.TorrentUIUtilsV3;
25
27
import com.aelitis.azureus.ui.swt.views.skin.VuzeShareUtils;
89
91
                                                Debug.printStackTrace(e);
90
92
                                        }
91
93
                                }
92
 
                                DownloadUrlInfo dlInfo = new DownloadUrlInfo(url);
 
94
                                DownloadUrlInfo dlInfo = new DownloadUrlInfoContentNetwork(url,
 
95
                                                ContentNetworkManagerFactory.getSingleton().getContentNetwork(
 
96
                                                                context.getContentNetworkID()));
93
97
                                dlInfo.setReferer(message.getReferer());
94
98
                                
95
99
                                TorrentUIUtilsV3.loadTorrent(core, dlInfo, playNow, playPrepare,
105
109
                                DownloadManager dm = core.getGlobalManager().getDownloadManager(
106
110
                                                new HashWrapper(Base32.decode(hash)));
107
111
                                if (dm != null && dm.getTorrent() != null) {
108
 
                                        PlatformRatingMessenger.getUserRating(new String[] {
 
112
                                        PlatformRatingMessenger.getUserRating(
 
113
                                                        PlatformTorrentUtils.getContentNetworkID(dm.getTorrent()),
 
114
                                                        new String[] {
109
115
                                                PlatformRatingMessenger.RATE_TYPE_CONTENT
110
116
                                        }, new String[] {
111
117
                                                hash