mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[Core] Export torrent get_magnet_uri method
Returns a generated magnet uri from torrent info
This commit is contained in:
parent
10501db63d
commit
0659fe4641
1 changed files with 4 additions and 0 deletions
|
@ -912,6 +912,10 @@ class Core(component.Component):
|
|||
"""Sets a torrents tracker list. trackers will be ``[{"url", "tier"}]``"""
|
||||
return self.torrentmanager[torrent_id].set_trackers(trackers)
|
||||
|
||||
@export
|
||||
def get_magnet_uri(self, torrent_id):
|
||||
return self.torrentmanager[torrent_id].get_magnet_uri()
|
||||
|
||||
@deprecated
|
||||
@export
|
||||
def set_torrent_max_connections(self, torrent_id, value):
|
||||
|
|
Loading…
Add table
Reference in a new issue