Exemplo n.º 1
0
def redirect_magnet(torrent_id):
    torrent = models.Torrent.by_id(torrent_id)

    if not torrent:
        flask.abort(404)

    return flask.redirect(torrents.create_magnet(torrent))
Exemplo n.º 2
0
 def magnet_uri(self):
     return create_magnet(self)