def get_torrent_file(self, id): torrent = self.browser.get_torrent(id) if not torrent: return None if torrent.url is NotAvailable and torrent.magnet: raise MagnetOnly(torrent.magnet) return self.browser.open(torrent.url).content
def get_torrent_file(self, id): torrent = self.browser.get_torrent(id) if not torrent: return None if torrent.url is NotAvailable and torrent.magnet: raise MagnetOnly(torrent.magnet) return self.browser.openurl(torrent.url.encode('utf-8')).read()
def get_torrent_file(self): raise MagnetOnly(self.get_torrent().magnet)
def get_torrent_file(self, id): raise MagnetOnly(self.get_torrent(id).magnet)