mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 22:53:40 +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
@ -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…
x
Reference in New Issue
Block a user