mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 00:23:32 +00:00
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 ""
|
||||
|
||||
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):
|
||||
"""
|
||||
Returns the status of the torrent based on the keys provided
|
||||
|
Loading…
x
Reference in New Issue
Block a user