Add torrent.get_magnet_uri() to return generated magnet uri

This commit is contained in:
Calum Lind 2014-01-18 21:48:41 +00:00
parent b5946c91ed
commit 7624683710
1 changed files with 4 additions and 0 deletions

View File

@ -621,6 +621,10 @@ class Torrent(object):
return host return host
return "" return ""
def get_magnet_uri(self):
"""Returns a magnet uri for this torrent"""
return lt.make_magnet_uri(self.handle)
def get_status(self, keys, diff=False, update=False, all_keys=False): def get_status(self, keys, diff=False, update=False, all_keys=False):
""" """
Returns the status of the torrent based on the keys provided Returns the status of the torrent based on the keys provided