// we want to re-download the torrent if it's ours, since the existing
// one is likely stale
if (torrent != null && !DataSourceUtils.isPlatformContent(ds)) {
TorrentUIUtilsV3.addTorrentToGM(torrent);
} else {
DownloadUrlInfo dlInfo = DataSourceUtils.getDownloadInfo(ds);
if (dlInfo != null) {
TorrentUIUtilsV3.loadTorrent(dlInfo, playNow, false, true);
return;
}
String hash = DataSourceUtils.getHash(ds);
if (hash != null) {
ContentNetwork cn = DataSourceUtils.getContentNetwork(ds);
if (cn == null) {
dlInfo = new DownloadUrlInfo(UrlUtils.parseTextForMagnets(hash));
dlInfo.setReferer(referal);
TorrentUIUtilsV3.loadTorrent(dlInfo, playNow, false, true);
return;
}
String url = cn.getTorrentDownloadService(hash, referal);