Add torrent.get_magnet_uri() to return generated magnet uri
This commit is contained in:
parent
b5946c91ed
commit
7624683710
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue